RQLUniqueConstraint not in CWConstraintType for some old instances stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 12 Aug 2010 15:58:42 +0200
branchstable
changeset 6105 a648c832da1f
parent 6104 a57db3faa913
child 6106 1e6d93f70d14
RQLUniqueConstraint not in CWConstraintType for some old instances
misc/migration/3.9.5_Any.py
misc/migration/bootstrapmigration_repository.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/migration/3.9.5_Any.py	Thu Aug 12 15:58:42 2010 +0200
@@ -0,0 +1,4 @@
+if not rql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',
+           ask_confirm=False):
+    rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',
+        ask_confirm=False)
--- a/misc/migration/bootstrapmigration_repository.py	Thu Aug 12 14:41:44 2010 +0200
+++ b/misc/migration/bootstrapmigration_repository.py	Thu Aug 12 15:58:42 2010 +0200
@@ -18,7 +18,6 @@
 """allways executed before all others in server migration
 
 it should only include low level schema changes
-
 """
 from __future__ import with_statement