[PATCH eac] [migration] Modification of the 0.3.0 migration

Guillaume Vandevelde guillaume.vandevelde at logilab.fr
Tue Jul 23 15:37:07 CEST 2019


# HG changeset patch
# User Guillaume Vandevelde <gvandevelde at logilab.fr>
# Date 1563807850 -7200
#      Mon Jul 22 17:04:10 2019 +0200
# Node ID 602ff7a78ad490fd7a722fb9f1d6ae4e595c989a
# Parent  c6719ba14ca67516c6f2bd932fe562c2a593e376
# Available At http://hg.logilab.org/review/cubes/eac
#              hg pull http://hg.logilab.org/review/cubes/eac -r 602ff7a78ad4
[migration] Modification of the 0.3.0 migration

Modify the migration of the 0.3.0 version for the cube EAC
by removing the adding of start_date and end_date
attribute on the ChronologicalRelation object.

This changes are in conflict with the schema needed for the migration
of francearchives to the version 0.9.0 of the eac cube.

Differential Revision: https://phab.logilab.fr/D4031

diff -r c6719ba14ca6 -r 602ff7a78ad4 cubicweb_eac/migration/0.3.0_Any.py
--- a/cubicweb_eac/migration/0.3.0_Any.py	Thu Jul 04 15:10:27 2019 +0200
+++ b/cubicweb_eac/migration/0.3.0_Any.py	Mon Jul 22 17:04:10 2019 +0200
@@ -1,5 +1,6 @@
-add_attribute('ChronologicalRelation', 'start_date', commit=False)
-add_attribute('ChronologicalRelation', 'end_date')
+# ERROR MIGRATION FRANCEARCHIVES
+# add_attribute('ChronologicalRelation', 'start_date', commit=False)
+# add_attribute('ChronologicalRelation', 'end_date')
 
 for etype in ('AssociationRelation', 'ChronologicalRelation', 'HierarchicalRelation'):
     add_attribute(etype, 'entry')



More information about the saem-devel mailing list