misc/migration/3.5.10_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 23 Sep 2011 12:23:09 +0200
branchstable
changeset 7843 3b51806da60b
parent 3977 5c84c6df6798
child 8798 cdab3aadc679
permissions -rw-r--r--
[rqlrewrite] if inlined relation has to be moved to a subquery, take care of the object of the relation (closes #1945725) As the object of the relation is moved to the subquery, all variables/relations representing some of its attributes or inlined relations should be moved there as well. This avoid error such as "BadRQLQuery: variable AF should be selected by the subquery" on security insertion.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3977
5c84c6df6798 synchronize rdef where unique constraints have been updated/added
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
sync_schema_props_perms('state_of')
5c84c6df6798 synchronize rdef where unique constraints have been updated/added
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
sync_schema_props_perms('transition_of')
5c84c6df6798 synchronize rdef where unique constraints have been updated/added
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
for etype in ('State', 'BaseTransition', 'Transition', 'WorkflowTransition'):
5c84c6df6798 synchronize rdef where unique constraints have been updated/added
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
    sync_schema_props_perms((etype, 'name', 'String'))
5c84c6df6798 synchronize rdef where unique constraints have been updated/added
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5