[massive store] identity_relation should not be considered, is_relation seems missing
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 21 Oct 2015 16:08:57 +0200
changeset 10861 6205b89c3af6
parent 10860 252877c624f0
child 10862 7357b1485795
[massive store] identity_relation should not be considered, is_relation seems missing The "identity_relation" table should not even exist.
dataimport/massive_store.py
--- a/dataimport/massive_store.py	Tue Nov 03 18:29:15 2015 +0100
+++ b/dataimport/massive_store.py	Wed Oct 21 16:08:57 2015 +0200
@@ -345,7 +345,7 @@
     def _drop_metatables_constraints(self):
         """ Drop all the constraints for the meta data"""
         for tablename in ('created_by_relation', 'owned_by_relation',
-                          'is_instance_of_relation', 'identity_relation',
+                          'is_instance_of_relation', 'is_relation',
                           'entities'):
             self.drop_and_store_indexes_constraints(tablename)
 
@@ -353,7 +353,7 @@
         """ Create all the constraints for the meta data"""
         for tablename in ('entities',
                           'created_by_relation', 'owned_by_relation',
-                          'is_instance_of_relation', 'identity_relation'):
+                          'is_instance_of_relation', 'is_relation'):
             # Indexes and constraints
             if self.drop_index:
                 self.reapply_constraint_index(tablename)