[schema] drop CWSourceSchemaConfig[cw_for_source,cw_schema] unique constraint (closes #1946277) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 22 Sep 2011 15:55:58 +0200
branchstable
changeset 7826 65b7ea00bab8
parent 7825 7e8c6a7e013e
child 7830 37d23a1d3547
[schema] drop CWSourceSchemaConfig[cw_for_source,cw_schema] unique constraint (closes #1946277) as they are not necessarily unique, eg when one want a configuration for both subject and object
misc/migration/3.13.6_Any.py
schemas/base.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/migration/3.13.6_Any.py	Thu Sep 22 15:55:58 2011 +0200
@@ -0,0 +1,1 @@
+sync_schema_props_perms('CWSourceSchemaConfig')
--- a/schemas/base.py	Thu Sep 22 15:54:57 2011 +0200
+++ b/schemas/base.py	Thu Sep 22 15:55:58 2011 +0200
@@ -331,7 +331,6 @@
 
 class CWSourceSchemaConfig(EntityType):
     __permissions__ = ENTITY_MANAGERS_PERMISSIONS
-    __unique_together__ = [('cw_for_source', 'cw_schema')]
     cw_for_source = SubjectRelation(
         'CWSource', inlined=True, cardinality='1*', composite='object',
         __permissions__=RELATION_MANAGERS_PERMISSIONS)