[schema] Update Label.language_code max size
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 19 Jul 2017 10:51:16 +0200
changeset 2651 099c8a8e54b0
parent 2650 3febc73ffa1b
child 2653 be33ca20445e
[schema] Update Label.language_code max size 6 is not enough to hold 'seda-02', move to 7.
cubicweb_seda/migration/0.10.5_Any.py
cubicweb_seda/schema/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_seda/migration/0.10.5_Any.py	Wed Jul 19 10:51:16 2017 +0200
@@ -0,0 +1,1 @@
+sync_schema_props_perms('language_code')
--- a/cubicweb_seda/schema/__init__.py	Thu Jun 22 11:52:03 2017 +0200
+++ b/cubicweb_seda/schema/__init__.py	Wed Jul 19 10:51:16 2017 +0200
@@ -150,7 +150,7 @@
 
 
 language_code = skos.Label.get_relation('language_code')
-language_code.constraints[0].max = 6
+language_code.constraints[0].max = 7
 # XXX code below may be dropped once https://www.cubicweb.org/ticket/14037638 is released
 language_code.indexed = True
 kind = skos.Label.get_relation('kind')