diff options
author | Derek Anderson <public@kered.org> | 2007-08-03 17:08:45 +0000 |
---|---|---|
committer | Derek Anderson <public@kered.org> | 2007-08-03 17:08:45 +0000 |
commit | ba056e68c85235dab92150ca1d7297ffeef6822a (patch) | |
tree | d1e76000a6ab39fc68c753389b751f517c3706df | |
parent | c05d52cdfe8955e9fb501497087367cd4daafbf6 (diff) | |
download | django-ba056e68c85235dab92150ca1d7297ffeef6822a.tar.gz |
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
-rw-r--r-- | django/db/backends/sqlite3/base.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 44ac1c11cd..d9bc82fe16 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -261,26 +261,6 @@ def get_change_column_def_sql( table_name, col_name, col_type, null, unique, pri output.append( 'DROP TABLE '+ quote_name(tmp_table_name) +';' ) 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 = [] |