2015-01-13 04:20:40 +08:00
|
|
|
from django.db.backends.base.creation import BaseDatabaseCreation
|
2008-08-11 20:11:25 +08:00
|
|
|
|
2013-07-08 08:39:54 +08:00
|
|
|
|
2008-08-11 20:11:25 +08:00
|
|
|
class DatabaseCreation(BaseDatabaseCreation):
|
2014-08-13 00:14:06 +08:00
|
|
|
|
2008-08-11 20:11:25 +08:00
|
|
|
def sql_table_creation_suffix(self):
|
|
|
|
suffix = []
|
2014-01-20 08:45:29 +08:00
|
|
|
test_settings = self.connection.settings_dict['TEST']
|
|
|
|
if test_settings['CHARSET']:
|
|
|
|
suffix.append('CHARACTER SET %s' % test_settings['CHARSET'])
|
|
|
|
if test_settings['COLLATION']:
|
|
|
|
suffix.append('COLLATE %s' % test_settings['COLLATION'])
|
2008-08-11 20:11:25 +08:00
|
|
|
return ' '.join(suffix)
|