misc/migration/3.13.3_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 16 Jan 2015 14:30:55 +0100
changeset 10203 1443fe643a38
parent 7688 f1b6e7c09a6f
permissions -rw-r--r--
[server] change order of entities table modification vs entity creation/deletion In order to have a foreign key referencing the entities table, the insertion into entities must happen first, and the deletion must happen last. For the deletion case, this means we need to: 1. delete all relations (cascade) 2. delete the entities themselves 3. delete the corresponding lines from the entities table This means the _delete_info{,_multi} methods can't keep doing 1 and 3. Thankfully the "public" delete_info method appears to be unused, so drop it. Related to #4846892.

drop_relation_definition('CWSourceSchemaConfig', 'cw_schema', 'CWAttribute')
sync_schema_props_perms('cw_schema')