mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-24 05:38:25 +00:00
Fix migration issue
This commit is contained in:
parent
9378a2ae1f
commit
3f785dc597
@ -17,10 +17,10 @@ depends_on = None
|
|||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
op.drop_constraint('document_id_key', 'data_store', type_='foreignkey')
|
op.execute("ALTER TABLE data_store DROP CONSTRAINT IF EXISTS document_id_key")
|
||||||
op.drop_table('document')
|
op.execute("DROP TABLE IF EXISTS document")
|
||||||
op.drop_table('file_data')
|
op.execute("DROP TABLE IF EXISTS file_data")
|
||||||
op.drop_table('old_file')
|
op.execute("DROP TABLE IF EXISTS old_file")
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user