Django

Code

Changeset 5790

Show
Ignore:
Timestamp:
08/03/07 12:08:45 (1 year ago)
Author:
danderson
Message:

schema-evolution:
removed some cruft i forgot to delete earlier

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/schema-evolution/django/db/backends/sqlite3/base.py

    r5787 r5790  
    261261    output.append( 'DROP TABLE '+ quote_name(tmp_table_name) +';' ) 
    262262 
    263     return output 
    264  
    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 old 
    282     output.append('-- sqlite does not support column modifications '+ quote_name(table_name) +'.'+ quote_name(col_name) +' to '+ col_def) 
    283263    return output 
    284264