"""Add sort_column, deleted and query to playlists table

Revision ID: 07dcbe6c4f0e
Revises: 4a7b4ab3354f
Create Date: 2022-12-25 10:26:38.200941

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '07dcbe6c4f0e'
down_revision = '4a7b4ab3354f'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('playlists', sa.Column('sort_column', sa.Integer(), nullable=True))
    op.add_column('playlists', sa.Column('query', sa.String(length=256), nullable=True))
    op.add_column('playlists', sa.Column('deleted', sa.Boolean(), nullable=False))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('playlists', 'deleted')
    op.drop_column('playlists', 'query')
    op.drop_column('playlists', 'sort_column')
    # ### end Alembic commands ###
