diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-26 13:56:08 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-17 10:16:06 -0500 |
| commit | 4aa089a9a9504c4a833eee8161be013206da5d15 (patch) | |
| tree | ebc7e23d3805c57d9f6a4fc75767b5e5046617a4 /django/core/management/commands/sqlcustom.py | |
| parent | a420f83e7d2e446ca01ef7c13d30c2ef3e975e5c (diff) | |
Removed support for custom SQL per deprecation timeline.
Diffstat (limited to 'django/core/management/commands/sqlcustom.py')
| -rw-r--r-- | django/core/management/commands/sqlcustom.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/django/core/management/commands/sqlcustom.py b/django/core/management/commands/sqlcustom.py deleted file mode 100644 index 84f213ca60..0000000000 --- a/django/core/management/commands/sqlcustom.py +++ /dev/null @@ -1,24 +0,0 @@ -from __future__ import unicode_literals - -from django.core.management.base import AppCommand -from django.core.management.sql import sql_custom -from django.db import connections, DEFAULT_DB_ALIAS - - -class Command(AppCommand): - help = "Prints the custom table modifying SQL statements for the given app name(s)." - - output_transaction = True - - def add_arguments(self, parser): - super(Command, self).add_arguments(parser) - parser.add_argument('--database', default=DEFAULT_DB_ALIAS, - help='Nominates a database to print the SQL for. Defaults to the ' - '"default" database.') - - def handle_app_config(self, app_config, **options): - if app_config.models_module is None: - return - connection = connections[options['database']] - statements = sql_custom(app_config, self.style, connection) - return '\n'.join(statements) |
