# HG changeset patch # User Sylvain Thénault # Date 1284381166 -7200 # Node ID 21772f4e41d9a83560507cdf454472490c2a42c1 # Parent a5cc5dc15f9d8dbdc8ae7b4cd74da9f6618ab0c9 [migration] attempt to fix pre 3.6 migration diff -r a5cc5dc15f9d -r 21772f4e41d9 misc/migration/3.6.0_Any.py --- a/misc/migration/3.6.0_Any.py Mon Sep 13 14:32:20 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -sync_schema_props_perms('read_permission', syncperms=False) # fix read_permission cardinality diff -r a5cc5dc15f9d -r 21772f4e41d9 misc/migration/bootstrapmigration_repository.py --- a/misc/migration/bootstrapmigration_repository.py Mon Sep 13 14:32:20 2010 +0200 +++ b/misc/migration/bootstrapmigration_repository.py Mon Sep 13 14:32:46 2010 +0200 @@ -35,9 +35,6 @@ ss.execschemarql(rql, rdef, ss.rdef2rql(rdef, CSTRMAP, groupmap=None)) commit(ask_confirm=False) -if applcubicwebversion < (3, 9, 6) and cubicwebversion >= (3, 9, 6): - add_entity_type('CWUniqueTogetherConstraint') - if applcubicwebversion == (3, 6, 0) and cubicwebversion >= (3, 6, 0): CSTRMAP = dict(rql('Any T, X WHERE X is CWConstraintType, X name T', ask_confirm=False)) @@ -95,6 +92,10 @@ for action in ('read', 'add', 'delete'): drop_relation_definition('CWRType', '%s_permission' % action, 'CWGroup', commit=False) drop_relation_definition('CWRType', '%s_permission' % action, 'RQLExpression') + sync_schema_props_perms('read_permission', syncperms=False) # fix read_permission cardinality + +if applcubicwebversion < (3, 9, 6) and cubicwebversion >= (3, 9, 6): + add_entity_type('CWUniqueTogetherConstraint') if applcubicwebversion < (3, 4, 0) and cubicwebversion >= (3, 4, 0):