# HG changeset patch # User Pierre-Yves David # Date 1364395085 -3600 # Node ID cdab3aadc6794f8eae38d1e30888565acfa9223d # Parent f0535129def61aabb6e7fa71fe3cfb2fef8b14c4 [migration] mark all version prior 3.7 as non-migrable API possible used by such old migration script are not supported in recent Cubiweb. Closes #2772958 diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.3.5_Any.py --- a/misc/migration/3.3.5_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.3.5_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,8 +1,1 @@ -# some entities have been added before schema entities, fix the 'is' and -# 'is_instance_of' relations -for rtype in ('is', 'is_instance_of'): - sql('INSERT INTO %s_relation ' - 'SELECT X.eid, ET.cw_eid FROM entities as X, cw_CWEType as ET ' - 'WHERE X.type=ET.cw_name AND NOT EXISTS(' - ' SELECT 1 from is_relation ' - ' WHERE eid_from=X.eid AND eid_to=ET.cw_eid)' % rtype) +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.4.0_Any.py --- a/misc/migration/3.4.0_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.4.0_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,2 +1,1 @@ -drop_attribute('CWEType', 'meta') -drop_attribute('CWRType', 'meta') +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.4.0_common.py --- a/misc/migration/3.4.0_common.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.4.0_common.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,6 +1,1 @@ -from os.path import join -from cubicweb.toolsutils import create_dir - -option_renamed('pyro-application-id', 'pyro-instance-id') - -create_dir(join(config.appdatahome, 'backup')) +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.4.3_Any.py --- a/misc/migration/3.4.3_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.4.3_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,2 +1,1 @@ -# sync and restart to make sure cwuri does not appear in forms -sync_schema_props_perms() +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.5.0_Any.py --- a/misc/migration/3.5.0_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.5.0_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,10 +1,1 @@ -add_relation_type('prefered_form') - -rql('SET X prefered_form Y WHERE Y canonical TRUE, X identical_to Y') -commit() - -drop_attribute('EmailAddress', 'canonical') -drop_relation_definition('EmailAddress', 'identical_to', 'EmailAddress') - -if 'see_also' in schema: - sync_schema_props_perms('see_also', syncprops=False, syncrdefs=False) +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.5.10_Any.py --- a/misc/migration/3.5.10_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.5.10_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,5 +1,1 @@ -sync_schema_props_perms('state_of') -sync_schema_props_perms('transition_of') -for etype in ('State', 'BaseTransition', 'Transition', 'WorkflowTransition'): - sync_schema_props_perms((etype, 'name', 'String')) - +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.5.3_Any.py --- a/misc/migration/3.5.3_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.5.3_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,7 +1,1 @@ -# type attribute might already be there if migrating from -# version < 3.5 to version >= 3.5.3, BaseTransition being added -# in bootstrap_migration -if versions_map['cubicweb'][0] >= (3, 5, 0): - add_attribute('BaseTransition', 'type') - sync_schema_props_perms('state_of') - sync_schema_props_perms('transition_of') +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)") diff -r f0535129def6 -r cdab3aadc679 misc/migration/3.6.1_Any.py --- a/misc/migration/3.6.1_Any.py Wed Mar 27 14:53:40 2013 +0100 +++ b/misc/migration/3.6.1_Any.py Wed Mar 27 15:38:05 2013 +0100 @@ -1,2 +1,1 @@ -sync_schema_props_perms(syncprops=False) -sync_schema_props_perms('destination_state', syncperms=False) +raise NotImplementedError("Cannot migrate such an old version. Use intermediate Cubiweb version (try 3.16.x)")