server/migractions.py
changeset 10107 1ef92a6193a8
parent 10095 200bd6a601dc
child 10129 52adf66fae7d
equal deleted inserted replaced
10106:3117f1736f00 10107:1ef92a6193a8
   687         for cube in reversed(newcubes):
   687         for cube in reversed(newcubes):
   688             with self.cnx.allow_all_hooks_but():
   688             with self.cnx.allow_all_hooks_but():
   689                 self.cmd_exec_event_script('postcreate', cube)
   689                 self.cmd_exec_event_script('postcreate', cube)
   690                 self.commit()
   690                 self.commit()
   691 
   691 
   692     def cmd_remove_cube(self, cube, removedeps=False):
   692     def cmd_drop_cube(self, cube, removedeps=False):
   693         removedcubes = super(ServerMigrationHelper, self).cmd_remove_cube(
   693         removedcubes = super(ServerMigrationHelper, self).cmd_drop_cube(
   694             cube, removedeps)
   694             cube, removedeps)
   695         if not removedcubes:
   695         if not removedcubes:
   696             return
   696             return
   697         fsschema = self.fs_schema
   697         fsschema = self.fs_schema
   698         removedcubes_schema = self.config.load_schema(construction_mode='non-strict')
   698         removedcubes_schema = self.config.load_schema(construction_mode='non-strict')