Add dumb migration from agent to authority records
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 18 Jan 2017 15:35:12 +0100
changeset 2304 af46a867519d
parent 2302 9ead08e8c6fd
child 2305 2b90e9d9e10d
Add dumb migration from agent to authority records Though this requires yet unpublished patch of cw 3.24 to not crash on addition of Activity (as prov is a dependancy of the eac cube). Test if Agent is still in the schema before dropping it, since saem_ref use the seda cube but also have its own definition of Agent, which we don't want to drop.
dev-requirements.txt
migration/0.6.0_Any.py
--- a/dev-requirements.txt	Tue Jan 17 18:03:14 2017 +0100
+++ b/dev-requirements.txt	Wed Jan 18 15:35:12 2017 +0100
@@ -1,1 +1,2 @@
 pytest
+http://hg.logilab.org/review/cubicweb/archive/0b8d086aa5de.tar.bz2#egg=cubicweb
--- a/migration/0.6.0_Any.py	Tue Jan 17 18:03:14 2017 +0100
+++ b/migration/0.6.0_Any.py	Wed Jan 18 15:35:12 2017 +0100
@@ -40,3 +40,7 @@
             rql('SET X {0} SEQ WHERE C seda_content SEQ, X {0} C'.format(rschema))
         commit()
 drop_entity_type('SEDAContent')
+
+add_cube('eac')
+if 'Agent' not in fsschema:
+    drop_entity_type('Agent')