Ticket #1500: mysql_autofield_patch_2.diff
File mysql_autofield_patch_2.diff, 1.3 KB (added by , 19 years ago) |
---|
-
django/db/backends/mysql/creation.py
3 3 # be interpolated against the values of Field.__dict__ before being output. 4 4 # If a column type is set to None, it won't be included in the output. 5 5 DATA_TYPES = { 6 'AutoField': ' mediumint(9) unsignedauto_increment',6 'AutoField': 'integer auto_increment', 7 7 'BooleanField': 'bool', 8 8 'CharField': 'varchar(%(maxlength)s)', 9 9 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', -
django/core/management.py
114 114 not_installed_models = set(pending_references.keys()) 115 115 if not_installed_models: 116 116 final_output.append('-- The following references should be added but depend on non-existant tables:') 117 for klass in not_ found_models:117 for klass in not_installed_models: 118 118 final_output.extend(['-- ' + sql for sql in 119 119 _get_sql_for_pending_references(klass, pending_references)]) 120 120