Anonymous avatar Anonymous committed 3a4f05d

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

Comments (0)

Files changed (1)

django/db/backends/sqlite3/base.py

     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 = []
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.