API - fix downgrade revision

This commit is contained in:
Sam 2022-07-19 20:04:32 +02:00
parent 4322b01966
commit d66f6828e4

View File

@ -25,6 +25,7 @@ def upgrade():
def downgrade(): def downgrade():
op.execute("DELETE FROM records WHERE record_type = 'HA';")
op.execute("ALTER TYPE record_types RENAME TO record_types_old") 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("CREATE TYPE record_types AS ENUM('AS', 'FD', 'LD', 'MS')")
op.execute( op.execute(