branch | stable |
changeset 6679 | 7f2735c48653 |
parent 6621 | 11c09415078b |
child 6702 | dfc19a6fb8aa |
--- a/misc/migration/3.10.4_Any.py Fri Nov 05 10:49:33 2010 +0100 +++ b/misc/migration/3.10.4_Any.py Fri Nov 05 10:49:58 2010 +0100 @@ -1,6 +1,6 @@ for eschema in schema.entities(): if not (eschema.final or 'cw_source' in eschema.subjrels): - add_relation_definition(eschema, 'cw_source', 'CWSource') + add_relation_definition(eschema.type, 'cw_source', 'CWSource') sql('INSERT INTO cw_source_relation(eid_from, eid_to) ' 'SELECT e.eid,s.cw_eid FROM entities as e, cw_CWSource as s '