|
@@ -125,7 +125,7 @@ class MongoDbMigrationHandler(GenericMigrationHandler):
|
125
|
125
|
class_collection_name = utils.object_collection_name(class_name)
|
126
|
126
|
return class_collection_name
|
127
|
127
|
|
128
|
|
- def _create_collection(self, collection_name, charset='utf8', if_exists=self.__class__.COMMANDS_IFEXISTS_NOTHING):
|
|
128
|
+ def _create_collection(self, collection_name, charset='utf8', if_exists=MongoDbMigrationHandler.COMMANDS_IFEXISTS_NOTHING):
|
129
|
129
|
if if_exists == self.__class__.COMMANDS_IFEXISTS_DROP:
|
130
|
130
|
if collection_name in self.database.collection_names(include_system_collections = False):
|
131
|
131
|
self._delete_collection(collection_name)
|