# HG changeset patch # User Sylvain Thénault # Date 1316699758 -7200 # Node ID 65b7ea00bab8b10f41e5c557f2bbe5e5ad4b63f9 # Parent 7e8c6a7e013e3262427a3eb5a30ad1fe26341030 [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 diff -r 7e8c6a7e013e -r 65b7ea00bab8 misc/migration/3.13.6_Any.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') diff -r 7e8c6a7e013e -r 65b7ea00bab8 schemas/base.py --- 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)