cubicweb/misc/migration/3.24.0_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 05 Oct 2016 16:20:52 +0200
changeset 11709 c16fe74d0a5f
parent 11681 b23d58050076
child 11757 e845746b4d3c
permissions -rw-r--r--
[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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11634
fa614537e5ee Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
# Check the CW versions and add the entity only if needed ?
fa614537e5ee Add a CWSession entity.
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
add_entity_type('CWSession')
11709
c16fe74d0a5f [migration] Drop cubicweb-pyramid CWProperty in 3.24.0 migration
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11681
diff changeset
     3
rql('DELETE CWProperty X WHERE X pkey "system.version.pyramid"',
c16fe74d0a5f [migration] Drop cubicweb-pyramid CWProperty in 3.24.0 migration
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11681
diff changeset
     4
    ask_confirm=False)