SQLA2.0 tidy up Alembic migration file

This commit is contained in:
Keith Edmunds 2022-07-05 07:59:40 +01:00
parent 374a312797
commit 2d886f3413

View File

@ -19,7 +19,6 @@ 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.drop_index('uniquerow', table_name='playlist_rows')
op.alter_column('playlists', 'loaded',
existing_type=mysql.TINYINT(display_width=1),
nullable=False)
@ -31,6 +30,5 @@ def downgrade():
op.alter_column('playlists', 'loaded',
existing_type=mysql.TINYINT(display_width=1),
nullable=True)
# op.create_index('uniquerow', 'playlist_rows', ['row', 'playlist_id'], unique=False)
op.drop_column('playlist_rows', 'text')
# ### end Alembic commands ###