Skip to content

Commit

Permalink
Fix weird legacy migration code/error
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Nov 20, 2023
1 parent aea5536 commit 1d75071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsmr_frontend/migrations/0034_mysql_timezone_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def migrate_forward(apps, schema_editor):
"SELECT CONVERT_TZ('2020-01-01 00:00:00', 'UTC', 'Europe/Amsterdam')"
)

if cursor.fetchone() is not None:
return
if cursor.fetchone() is not None:
return

Notification = apps.get_model("dsmr_frontend", "Notification")
Notification.objects.create(
Expand Down

0 comments on commit 1d75071

Please sign in to comment.