Browse Source

Migration handler

Roland Haroutiounian 8 years ago
parent
commit
3a504e6065
1 changed files with 0 additions and 10 deletions
  1. 0
    10
      lodel/datasource/mongodb/migration_handler.py

+ 0
- 10
lodel/datasource/mongodb/migration_handler.py View File

@@ -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
 

Loading…
Cancel
Save