"""Increase settings.name len and add playlist_rows.notes

Revision ID: 51f61433256f
Revises: 3f55ac7d80ad
Create Date: 2022-07-04 21:21:39.830406

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql

# revision identifiers, used by Alembic.
revision = '51f61433256f'
down_revision = '3f55ac7d80ad'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('playlist_rows', sa.Column('text', sa.String(length=2048), nullable=True))
    op.alter_column('playlists', 'loaded',
               existing_type=mysql.TINYINT(display_width=1),
               nullable=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('playlists', 'loaded',
               existing_type=mysql.TINYINT(display_width=1),
               nullable=True)
    op.drop_column('playlist_rows', 'text')
    # ### end Alembic commands ###
