misc/migration/3.10.5_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Feb 2011 18:00:42 +0100
changeset 6952 7de13eb473e3
parent 6622 27402fe6a94a
permissions -rw-r--r--
[tabs js] merge tabs and lazy js files into cw.ajax.js and use camel case names to satisfy js coding standards

sync_schema_props_perms('CWSourceHostConfig', syncperms=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 '
    'WHERE s.cw_name=e.source AND NOT EXISTS(SELECT 1 FROM cw_source_relation WHERE eid_from=e.eid AND eid_to=s.cw_eid)')
commit()