[Cubicweb] creating multi column unique index in db

Alexandre Fayolle alexandre.fayolle at logilab.fr
Thu Sep 2 08:29:06 CEST 2010

I've started working on this yesterday. 

What I'm moving towards is:

* in yams, a new attribute of EntityType classes called __unique_together__ 
(name suggested by Adrien, after something similar in Django), which is a list 
of tuple of rtypes : each tuple is made into an unique index. 

* in cubicweb, two additional migration commands, 
add/drop_unique_together_attrs, which can be used to add the indexes in 
migration scripts. 

Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure :      http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science

More information about the Cubicweb mailing list