[PATCH 2 of 2 seda] [migration] Synchronize user_cardinality, missing from previous migration

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Oct 11 11:01:32 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1507701973 -7200
#      Wed Oct 11 08:06:13 2017 +0200
# Node ID 41f60974d0a705e571c88199470d007d291aa05c
# Parent  db7d6c475c6823a659f60518122f1b8d839b3e67
# Available At https://hg.logilab.org/review/cubes/seda
#              hg pull https://hg.logilab.org/review/cubes/seda -r 41f60974d0a7
[migration] Synchronize user_cardinality, missing from previous migration

0.10.7 changed default cardinality but missed this migration step.

diff --git a/cubicweb_seda/migration/0.11.0_Any.py b/cubicweb_seda/migration/0.11.0_Any.py
--- a/cubicweb_seda/migration/0.11.0_Any.py
+++ b/cubicweb_seda/migration/0.11.0_Any.py
@@ -39,5 +39,7 @@ print(len(rset), 'concepts to delete')
 for i, concept in enumerate(rset.entities()):
     concept.cw_delete()
     if i % 10:
         cnx.commit()
 
+
+sync_schema_props_perms('user_cardinality')


More information about the saem-devel mailing list