cubicweb/misc/migration/3.24.0_Any.py
branch3.24
changeset 11948 73ed9c204de9
parent 11937 7d3ee5a516fa
child 12185 c46f2bf815d2
--- a/cubicweb/misc/migration/3.24.0_Any.py	Tue Jan 31 11:06:28 2017 +0100
+++ b/cubicweb/misc/migration/3.24.0_Any.py	Mon Feb 06 11:21:31 2017 +0100
@@ -1,11 +1,6 @@
 from base64 import b64decode
 
 
-# Check the CW versions and add the entity only if needed ?
-add_entity_type('CWSession')
-rql('DELETE CWProperty X WHERE X pkey "system.version.pyramid"',
-    ask_confirm=False)
-
 # before removing extid, ensure it's coherent with cwuri
 for eid, etype, encoded_extid in sql(
         "SELECT eid, type, extid FROM entities, cw_CWSource "
@@ -21,3 +16,8 @@
 # force cw_schema deletion before CWSourceSchemaConfig to avoid nasty bug
 drop_relation_type('cw_schema')
 drop_entity_type('CWSourceSchemaConfig')
+
+# Check the CW versions and add the entity only if needed ?
+add_entity_type('CWSession')
+rql('DELETE CWProperty X WHERE X pkey "system.version.pyramid"',
+    ask_confirm=False)