# HG changeset patch # User Sylvain Thénault # Date 1273670717 -7200 # Node ID 4bf975c049a6d38b1db625674fa1fcd51e19441c # Parent 6be95896d49e9e6940eb84a29264a192ce1b2313 [db-check] RQLConstraint is not a 'unique' constraint diff -r 6be95896d49e -r 4bf975c049a6 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'