equal
deleted
inserted
replaced
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') |