Ticket #5207: autoinc_sql.diff

File autoinc_sql.diff, 595 bytes (added by John Shaffer <jshaffer2112@…>, 17 years ago)
  • core/management/sql.py

     
    350350            final_output.append('\n'.join(table_output))
    351351
    352352            # Add any extra SQL needed to support auto-incrementing PKs
    353             autoinc_sql = backend.get_autoinc_sql(f.m2m_db_table())
     353            autoinc_sql = connection.ops.autoinc_sql(f.m2m_db_table())
    354354            if autoinc_sql:
    355355                for stmt in autoinc_sql:
    356356                    final_output.append(stmt)
Back to Top