cubicweb/dataimport/massive_store.py
changeset 12203 c615f945b38a
parent 12171 970c32a4c7b7
parent 12195 81cf4cf60411
child 12567 26744ad37953
equal deleted inserted replaced
12192:cf5d11ac79fb 12203:c615f945b38a
   104 
   104 
   105         This is expected to be called once, by the master store in master/slaves configuration.
   105         This is expected to be called once, by the master store in master/slaves configuration.
   106         """
   106         """
   107         assert not self.slave_mode
   107         assert not self.slave_mode
   108         if self not in self._initialized:
   108         if self not in self._initialized:
       
   109             self.sql('DROP TABLE IF EXISTS cwmassive_initialized')
   109             self.sql('CREATE TABLE cwmassive_initialized'
   110             self.sql('CREATE TABLE cwmassive_initialized'
   110                      '(retype text, type varchar(128), uuid varchar(32))')
   111                      '(retype text, type varchar(128), uuid varchar(32))')
   111             self._initialized[self] = None
   112             self._initialized[self] = None
   112             if commit:
   113             if commit:
   113                 self.commit()
   114                 self.commit()