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