cubicweb/misc/migration/3.24.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 06 Oct 2016 12:11:23 +0200
changeset 11775 39cf9e55ada8
parent 11774 51c160677afe
child 11776 b49684ddd543
permissions -rw-r--r--
[source] Drop source mapping handling It was only used by the cwxmlparser which has been deleted. This is too complex for litle benefit, we don't want to maintain that in cubicweb.
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)
11757
e845746b4d3c [sources] Drop 'moved_entities' table handling
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11709
diff changeset
     5
e845746b4d3c [sources] Drop 'moved_entities' table handling
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11709
diff changeset
     6
sql('DROP TABLE moved_entities')
11773
054a947b5415 [repository] Drop the entities.asource column
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11757
diff changeset
     7
sql('ALTER TABLE entities DROP COLUMN asource')
11774
51c160677afe [repository] Drop the entities.extid column and associated cache
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11773
diff changeset
     8
sql('ALTER TABLE entities DROP COLUMN extid')
11775
39cf9e55ada8 [source] Drop source mapping handling
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11774
diff changeset
     9
39cf9e55ada8 [source] Drop source mapping handling
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11774
diff changeset
    10
drop_entity_type('CWSourceSchemaConfig')