[db-check] RQLConstraint is not a 'unique' constraint stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 12 May 2010 15:25:17 +0200
branchstable
changeset 5523 4bf975c049a6
parent 5522 6be95896d49e
child 5524 2f3d4ca6f7f8
[db-check] RQLConstraint is not a 'unique' constraint
server/checkintegrity.py
--- a/server/checkintegrity.py	Wed May 12 13:12:03 2010 +0200
+++ b/server/checkintegrity.py	Wed May 12 15:25:17 2010 +0200
@@ -130,7 +130,7 @@
     """check serialized schema"""
     print 'Checking serialized schema'
     unique_constraints = ('SizeConstraint', 'FormatConstraint',
-                          'VocabularyConstraint', 'RQLConstraint',
+                          'VocabularyConstraint',
                           'RQLVocabularyConstraint')
     rql = ('Any COUNT(X),RN,SN,ON,CTN GROUPBY RN,SN,ON,CTN ORDERBY 1 '
            'WHERE X is CWConstraint, R constrained_by X, '
@@ -142,6 +142,8 @@
         if cstrname in unique_constraints:
             print "ERROR: got %s %r constraints on relation %s.%s.%s" % (
                 count, cstrname, sn, rn, on)
+            if fix:
+                print 'dunno how to fix, do it yourself'