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
@@ -10,7 +10,6 @@ from django.core.management.base import BaseCommand
|
||||
|
||||
from ...constants import __version__
|
||||
from ...migration_linter import MessageType, MigrationLinter
|
||||
from ...sql_analyser.analyser import ANALYSER_STRING_MAPPING
|
||||
from ..utils import (
|
||||
configure_logging,
|
||||
extract_warnings_as_errors_option,
|
||||
@@ -130,12 +129,6 @@ class Command(BaseCommand):
|
||||
choices=MessageType.values(),
|
||||
help="don't print linting messages to stdout",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--sql-analyser",
|
||||
nargs="?",
|
||||
choices=list(ANALYSER_STRING_MAPPING.keys()),
|
||||
help="select the SQL analyser",
|
||||
)
|
||||
register_linting_configuration_options(parser)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
||||
Reference in new issue
Block a user