From 68dc55f385bdff8578987d42d0fdb4ddaedacf6d Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 1 Sep 2021 14:34:32 +0200 Subject: [PATCH] API - fix migration --- .../migrations/versions/17_cee0830497f8_add_new_sports.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fittrackee/migrations/versions/17_cee0830497f8_add_new_sports.py b/fittrackee/migrations/versions/17_cee0830497f8_add_new_sports.py index 4100d486..5fa01db7 100644 --- a/fittrackee/migrations/versions/17_cee0830497f8_add_new_sports.py +++ b/fittrackee/migrations/versions/17_cee0830497f8_add_new_sports.py @@ -34,6 +34,10 @@ def downgrade(): op.execute( """ DELETE FROM sports - WHERE label = 'Mountain Biking (Electric)'; + WHERE label = 'Mountain Biking (Electric)' + OR label = 'Trail' + OR label = 'Skiing (Alpine)' + OR label = 'Skiing (Cross Country)' + OR label = 'Rowing'; """ - ) \ No newline at end of file + )