diff --git a/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py b/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py index 9b0b23c5..1129588e 100644 --- a/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py +++ b/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py @@ -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(