Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Vedrilla committed Oct 30, 2023
1 parent f3b4ac6 commit 0b40fed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_migration_zero/services/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from django.db import connections

from django_migration_zero.exceptions import InvalidMigrationTreeError
from django_migration_zero.helpers.file_system import get_local_django_apps, has_migration_directory
from django_migration_zero.helpers.logger import get_logger
from django_migration_zero.models import MigrationZeroConfiguration

Expand Down Expand Up @@ -36,7 +35,7 @@ def process(self):
self.logger.info("Resetting migration history for all apps...")

with connections["default"].cursor() as cursor:
cursor.execute(f"DELETE FROM `django_migrations`")
cursor.execute("DELETE FROM `django_migrations`")

# Apply migrations via fake because the database is already up-to-date
self.logger.info("Populating migration history.")
Expand Down

0 comments on commit 0b40fed

Please sign in to comment.