[migration] 3.10.4 migration should not ask confirmation when adding CWSource stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Mon, 15 Nov 2010 19:38:31 +0100
branchstable
changeset 6702 dfc19a6fb8aa
parent 6701 fd4267ecbba6
child 6711 df56089ba9f9
[migration] 3.10.4 migration should not ask confirmation when adding CWSource
misc/migration/3.10.4_Any.py
--- a/misc/migration/3.10.4_Any.py	Fri Nov 12 07:46:19 2010 +0100
+++ b/misc/migration/3.10.4_Any.py	Mon Nov 15 19:38:31 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.type, 'cw_source', 'CWSource')
+        add_relation_definition(eschema.type, 'cw_source', 'CWSource', ask_confirm=False)
 
 sql('INSERT INTO cw_source_relation(eid_from, eid_to) '
     'SELECT e.eid,s.cw_eid FROM entities as e, cw_CWSource as s '