Ticket #15697: ticket15697.diff

File ticket15697.diff, 712 bytes (added by ashchristopher, 4 years ago)
  • django/core/management/sql.py

    diff --git a/django/core/management/sql.py b/django/core/management/sql.py
    old mode 100644
    new mode 100755
    index 298882f..efdc2e0
    a b def sql_custom(app, style, connection): 
    134134
    135135    return output
    136136
    137 def sql_indexes(app, style, connection):
     137def sql_indexes(app, style, connection, include_auto_created=True):
    138138    "Returns a list of the CREATE INDEX SQL statements for all models in the given app."
    139139    output = []
    140     for model in models.get_models(app):
     140    for model in models.get_models(app, include_auto_created):
    141141        output.extend(connection.creation.sql_indexes_for_model(model, style))
    142142    return output
    143143
Back to Top