misc/migration/3.18.0_Any.py
changeset 9414 d8c0784038f4
parent 9410 ce072c9aa573
child 9477 07fc991612b0
child 9478 2d7521881d3d
--- a/misc/migration/3.18.0_Any.py	Thu Jan 16 11:54:06 2014 +0100
+++ b/misc/migration/3.18.0_Any.py	Thu Jan 16 14:19:04 2014 +0100
@@ -7,6 +7,9 @@
 add_relation_definition('CWAttribute', 'add_permission', 'CWGroup')
 add_relation_definition('CWAttribute', 'add_permission', 'RQLExpression')
 
+# a bad defaultval in 3.13.8 schema was fixed in 3.13.9, but the migration was missed
+rql('SET ATTR defaultval NULL WHERE ATTR from_entity E, E name "CWSource", ATTR relation_type T, T name "in_synchronization"')
+
 # the migration gets confused when we change rdefs out from under it.  So
 # explicitly remove this size constraint so it doesn't stick around and break
 # things later.