1 from django.db import connection
2 from django.db.models.fields import *
3 from south.db import generic
5 class DatabaseOperations(generic.DatabaseOperations):
7 django-pyodbc (sql_server.pyodbc) implementation of database operations.
10 add_column_string = 'ALTER TABLE %s ADD %s;'
11 alter_string_set_type = 'ALTER COLUMN %(column)s %(type)s'
12 allows_combined_alters = False
13 delete_column_string = 'ALTER TABLE %s DROP COLUMN %s;'
15 def create_table(self, table_name, fields):
16 # Tweak stuff as needed
18 if isinstance(f, BooleanField):
21 if f.default == False:
25 generic.DatabaseOperations.create_table(self, table_name, fields)