mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
schema-evolution:
removed some cruft i forgot to delete earlier git-svn-id: http://code.djangoproject.com/svn/django/branches/schema-evolution@5790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c05d52cdfe
commit
ba056e68c8
@ -262,26 +262,6 @@ def get_change_column_def_sql( table_name, col_name, col_type, null, unique, pri
|
||||
|
||||
return output
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
output = []
|
||||
col_def = col_type +' '+ ('%sNULL' % (not null and 'NOT ' or ''))
|
||||
if unique or primary_key:
|
||||
col_def += ' '+ 'UNIQUE'
|
||||
if primary_key:
|
||||
col_def += ' '+ 'PRIMARY KEY'
|
||||
# TODO: fake via renaming the table, building a new one and deleting the old
|
||||
output.append('-- sqlite does not support column modifications '+ quote_name(table_name) +'.'+ quote_name(col_name) +' to '+ col_def)
|
||||
return output
|
||||
|
||||
def get_add_column_sql( table_name, col_name, col_type, null, unique, primary_key ):
|
||||
output = []
|
||||
field_output = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user