From e5a6ae4f18fa3659339f6d604749eb3477859e32 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 19 Jul 2022 10:26:21 +0200 Subject: [PATCH] API - fix down revision --- .../migrations/versions/24_cd0e6cf83207_add_ascent_record.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py b/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py index aef966c1..9b0b23c5 100644 --- a/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py +++ b/fittrackee/migrations/versions/24_cd0e6cf83207_add_ascent_record.py @@ -1,7 +1,7 @@ """add ascent record Revision ID: cd0e6cf83207 -Revises: e30007d681cb +Revises: 5e3a3a31c432 Create Date: 2022-03-22 20:21:13.661883 """ @@ -11,7 +11,7 @@ import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cd0e6cf83207' -down_revision = 'e30007d681cb' +down_revision = '5e3a3a31c432' branch_labels = None depends_on = None @@ -23,6 +23,7 @@ def upgrade(): """ ) + def downgrade(): op.execute("ALTER TYPE record_types RENAME TO record_types_old") op.execute("CREATE TYPE record_types AS ENUM('AS', 'FD', 'LD', 'MS')")