[migration] skip final entity types
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Oct 2010 18:26:49 +0200
changeset 6608 1a76045d093d
parent 6607 29f3e4b31125
child 6609 d73733479a3a
[migration] skip final entity types
misc/migration/3.10.4_Any.py
--- a/misc/migration/3.10.4_Any.py	Fri Oct 22 18:22:57 2010 +0200
+++ b/misc/migration/3.10.4_Any.py	Fri Oct 22 18:26:49 2010 +0200
@@ -1,5 +1,5 @@
 for eschema in schema.entities():
-    if not 'cw_source' in eschema.subjrels:
+    if not (eschema.final or 'cw_source' in eschema.subjrels):
         add_relation_definition(eschema, 'cw_source', 'CWSource')
 
 sql('INSERT INTO cw_source_relation(eid_from, eid_to) '