--- 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.