Allow passing '--sql-analyser' to makemigrations command
This commit is contained in:
1 parent
c7d9129db9
commit
c2ad3e6aeb
4 files changed
+15
-10
No files matched your search
@@ -46,6 +46,7 @@ class Command(MakeMigrationsCommand):
|
||||
self.database = options["database"]
|
||||
self.exclude_migrations_tests = options["exclude_migration_tests"]
|
||||
self.warnings_as_errors = options["warnings_as_errors"]
|
||||
self.sql_analyser = options["sql_analyser"]
|
||||
configure_logging(options["verbosity"])
|
||||
return super(Command, self).handle(*app_labels, **options)
|
||||
|
||||
@@ -85,6 +86,7 @@ class Command(MakeMigrationsCommand):
|
||||
exclude_migration_tests=self.exclude_migrations_tests,
|
||||
warnings_as_errors_tests=warnings_as_errors_tests,
|
||||
all_warnings_as_errors=all_warnings_as_errors,
|
||||
analyser_string=self.sql_analyser,
|
||||
)
|
||||
|
||||
for app_label, app_migrations in changes.items():
|
||||
|
||||
Reference in new issue
Block a user