diff options
| author | Derek Anderson <public@kered.org> | 2007-07-30 20:05:02 +0000 |
|---|---|---|
| committer | Derek Anderson <public@kered.org> | 2007-07-30 20:05:02 +0000 |
| commit | 6dab0824be1ff85eca8e22609ff4adcbdfa86c73 (patch) | |
| tree | ac6c794ae65b2fc74d6756d8ba795dbd1dc9613e /django/db | |
| parent | 993ac8db975aa3544a9f01921dc40b7f3d70d72e (diff) | |
schema-evolution: fixed f.aka bug; moved sql commenting from the base classes into management.py; added unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/schema-evolution@5779 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/mysql/base.py | 2 | ||||
| -rw-r--r-- | django/db/backends/postgresql/base.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 908a08f239..7f5fa8d00e 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -280,7 +280,7 @@ def get_add_column_sql( table_name, col_name, col_type, null, unique, primary_ke def get_drop_column_sql( table_name, col_name ): output = [] - output.append( '-- ALTER TABLE '+ quote_name(table_name) +' DROP COLUMN '+ quote_name(col_name) + ';' ) + output.append( 'ALTER TABLE '+ quote_name(table_name) +' DROP COLUMN '+ quote_name(col_name) + ';' ) return '\n'.join(output) diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 82a0501de8..3dd54726ea 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -315,7 +315,7 @@ def get_add_column_sql( table_name, col_name, col_type, null, unique, primary_ke def get_drop_column_sql( table_name, col_name ): output = [] - output.append( '-- ALTER TABLE '+ quote_name(table_name) +' DROP COLUMN '+ quote_name(col_name) + ';' ) + output.append( 'ALTER TABLE '+ quote_name(table_name) +' DROP COLUMN '+ quote_name(col_name) + ';' ) return '\n'.join(output) # Register these custom typecasts, because Django expects dates/times to be |
