misc/migration/bootstrapmigration_repository.py
changeset 10025 7b72ecc3f4d2
parent 10015 57a16bef82c0
child 10074 ab956b780d4e
--- a/misc/migration/bootstrapmigration_repository.py	Tue Nov 04 14:10:02 2014 +0100
+++ b/misc/migration/bootstrapmigration_repository.py	Thu Nov 13 10:37:44 2014 +0100
@@ -57,6 +57,14 @@
 
     replace_eid_sequence_with_eid_numrange(session)
 
+if applcubicwebversion < (3, 20, 0) and cubicwebversion >= (3, 20, 0):
+    ss._IGNORED_PROPS.append('formula')
+    add_attribute('CWAttribute', 'formula', commit=False)
+    ss._IGNORED_PROPS.remove('formula')
+    commit()
+    add_entity_type('CWComputedRType')
+    commit()
+
 if applcubicwebversion < (3, 17, 0) and cubicwebversion >= (3, 17, 0):
     try:
         add_cube('sioc', update_database=False)