[migration] Drop cubicweb-pyramid CWProperty in 3.24.0 migration
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 05 Oct 2016 16:20:52 +0200
changeset 11709 c16fe74d0a5f
parent 11708 2b11531b8028
child 11710 dd5df5fe7137
[migration] Drop cubicweb-pyramid CWProperty in 3.24.0 migration This does a partial "drop_cube('pyramid')" equivalent but only considering CWProperty. We cannot just drop the cube since we have introduced some mechanism to exclude pyramid cube from config's cubes list and that would make MigrationHelper.cmd_drop_cube() call not return "pyramid" cube. Related to #14023058.
cubicweb/misc/migration/3.24.0_Any.py
--- a/cubicweb/misc/migration/3.24.0_Any.py	Wed Sep 28 08:48:20 2016 +0200
+++ b/cubicweb/misc/migration/3.24.0_Any.py	Wed Oct 05 16:20:52 2016 +0200
@@ -1,2 +1,4 @@
 # 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)