cubicweb/dataimport/massive_store.py
branch3.25
changeset 12195 81cf4cf60411
parent 11871 5f71460236a4
child 12203 c615f945b38a
equal deleted inserted replaced
12194:2f9da7a8ecb6 12195:81cf4cf60411
   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()