misc/migration/3.5.3_Any.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 07 Oct 2009 21:59:22 +0200
branchstable
changeset 3611 8d7d4a67820f
parent 3528 77a69de16709
child 3612 0605d8755613
permissions -rw-r--r--
[migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3499
9161c215b954 [schema] set composite on state_of / transition_of
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
sync_schema_props_perms('state_of')
9161c215b954 [schema] set composite on state_of / transition_of
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
sync_schema_props_perms('transition_of')
3528
77a69de16709 support for automatic transition
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3499
diff changeset
     3
3611
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     4
# type attribute might already be there if migrating from
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     5
# version < 3.5 to version >= 3.5.3, BaseTransition being added
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     6
# in bootstrap_migration
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     7
if not schema.eschema('BaseTransition').has_subject_relation('type'):
8d7d4a67820f [migration] fix 3.5.3_Any.py for migrations starting from before 3.5
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents: 3528
diff changeset
     8
    add_attribute('BaseTransition', 'type')