SQLA2.0 tidy up Alembic migration file
This commit is contained in:
parent
374a312797
commit
2d886f3413
@ -19,7 +19,6 @@ depends_on = None
|
|||||||
def upgrade():
|
def upgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.add_column('playlist_rows', sa.Column('text', sa.String(length=2048), nullable=True))
|
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',
|
op.alter_column('playlists', 'loaded',
|
||||||
existing_type=mysql.TINYINT(display_width=1),
|
existing_type=mysql.TINYINT(display_width=1),
|
||||||
nullable=False)
|
nullable=False)
|
||||||
@ -31,6 +30,5 @@ def downgrade():
|
|||||||
op.alter_column('playlists', 'loaded',
|
op.alter_column('playlists', 'loaded',
|
||||||
existing_type=mysql.TINYINT(display_width=1),
|
existing_type=mysql.TINYINT(display_width=1),
|
||||||
nullable=True)
|
nullable=True)
|
||||||
# op.create_index('uniquerow', 'playlist_rows', ['row', 'playlist_id'], unique=False)
|
|
||||||
op.drop_column('playlist_rows', 'text')
|
op.drop_column('playlist_rows', 'text')
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user