misc/migration/3.5.3_Any.py
branchstable
changeset 3612 0605d8755613
parent 3611 8d7d4a67820f
child 3666 7d0f6234b001
equal deleted inserted replaced
3611:8d7d4a67820f 3612:0605d8755613
     1 sync_schema_props_perms('state_of')
       
     2 sync_schema_props_perms('transition_of')
       
     3 
       
     4 # type attribute might already be there if migrating from
     1 # type attribute might already be there if migrating from
     5 # version < 3.5 to version >= 3.5.3, BaseTransition being added
     2 # version < 3.5 to version >= 3.5.3, BaseTransition being added
     6 # in bootstrap_migration
     3 # in bootstrap_migration
     7 if not schema.eschema('BaseTransition').has_subject_relation('type'):
     4 if versions_map['cubicweb'][0] < (3, 5, 0):
     8     add_attribute('BaseTransition', 'type')
     5     add_attribute('BaseTransition', 'type')
       
     6     sync_schema_props_perms('state_of')
       
     7     sync_schema_props_perms('transition_of')