浏览代码

Migration handler

Roland Haroutiounian 8 年前
父节点
当前提交
3a504e6065
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0
    10
      lodel/datasource/mongodb/migration_handler.py

+ 0
- 10
lodel/datasource/mongodb/migration_handler.py 查看文件

@@ -34,16 +34,6 @@ class MongoDbMigrationHandler(GenericMigrationHandler):
34 34
     # @param new_state dict|None : dict with field name as key and field value as value. Represents the new state. None means it's a component deletion.
35 35
     # @throw MigrationHandlerChangeError if the change was refused
36 36
     def register_change(self, em, uid, initial_state, new_state):
37
-        if isinstance(em.classes(uid), EmClass):
38
-            if initial_state is None:
39
-                # EmClass creation
40
-                self.create_emclass_collection(em, uid)
41
-            elif new_state is None:
42
-                # EmClass deletion
43
-                self.delete_emclass_collection(em, uid)
44
-        elif isinstance(em.classes(uid), EmField):
45
-            emfield = em.
46
-
47 37
         pass
48 38
 
49 39
 

正在加载...
取消
保存