Commit 38c3b2be authored by David Douard's avatar David Douard
Browse files

[massive store] ensure the cwmassive_initialized table is deleted if needed

This may be necessary if a previous import did badly crached, leaving the
cwmassive_initialized behind.

--HG--
branch : 3.25
parent 2f9da7a8ecb6
......@@ -106,6 +106,7 @@ class MassiveObjectStore(stores.RQLObjectStore):
"""
assert not self.slave_mode
if self not in self._initialized:
self.sql('DROP TABLE IF EXISTS cwmassive_initialized')
self.sql('CREATE TABLE cwmassive_initialized'
'(retype text, type varchar(128), uuid varchar(32))')
self._initialized[self] = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment