[PATCH 04 of 13 saem_ref] [migration] Update place_address relation

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 31 17:57:16 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490800756 -7200
#      Wed Mar 29 17:19:16 2017 +0200
# Node ID 8e0598e0ca3dc5e62113626dc7da8c5560f6bedb
# Parent  8ce1b3135f9842f47badd1bd9a9a0da49acaa1d3
[migration] Update place_address relation

on the demo site, this relation has '??' cardinality instead of '?1', leading to
potential permissions errors since it's not added to ON_COMMIT_ADD_RELATIONS
set.

Closes extranet #15811793

diff --git a/cubicweb_saem_ref/migration/0.15.1_Any.py b/cubicweb_saem_ref/migration/0.15.1_Any.py
--- a/cubicweb_saem_ref/migration/0.15.1_Any.py
+++ b/cubicweb_saem_ref/migration/0.15.1_Any.py
@@ -1,2 +1,2 @@
-for ertype in ('generated', 'used', 'associated_with'):
+for ertype in ('generated', 'used', 'associated_with', 'place_address'):
     sync_schema_props_perms(ertype)


More information about the saem-devel mailing list