Skip to content

Commit

Permalink
quite migration name to avoid failures of migration with space in the…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
ambientlight authored and David-Wobrock committed Apr 21, 2019
1 parent 1245e79 commit fb0d7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_migration_linter/migration_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_sql(self, app_name, migration_name):
it allows to seperate the instances correctly.
"""
sqlmigrate_command = (
"cd {0} && {1} manage.py sqlmigrate {2} {3} --database {4}"
"cd {0} && {1} manage.py sqlmigrate {2} '{3}' --database {4}"
).format(
self.django_path, sys.executable, app_name, migration_name, self.database
)
Expand Down

0 comments on commit fb0d7f0

Please sign in to comment.