Changeset 5790
- Timestamp:
- 08/03/07 12:08:45 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/schema-evolution/django/db/backends/sqlite3/base.py
r5787 r5790 261 261 output.append( 'DROP TABLE '+ quote_name(tmp_table_name) +';' ) 262 262 263 return output264 265 266 267 268 269 270 271 272 273 274 275 output = []276 col_def = col_type +' '+ ('%sNULL' % (not null and 'NOT ' or ''))277 if unique or primary_key:278 col_def += ' '+ 'UNIQUE'279 if primary_key:280 col_def += ' '+ 'PRIMARY KEY'281 # TODO: fake via renaming the table, building a new one and deleting the old282 output.append('-- sqlite does not support column modifications '+ quote_name(table_name) +'.'+ quote_name(col_name) +' to '+ col_def)283 263 return output 284 264
