API - fix downgrade revision
This commit is contained in:
parent
4322b01966
commit
d66f6828e4
@ -25,6 +25,7 @@ def upgrade():
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.execute("DELETE FROM records WHERE record_type = 'HA';")
|
||||
op.execute("ALTER TYPE record_types RENAME TO record_types_old")
|
||||
op.execute("CREATE TYPE record_types AS ENUM('AS', 'FD', 'LD', 'MS')")
|
||||
op.execute(
|
||||
|
Loading…
Reference in New Issue
Block a user