Author: matevz
Date: Tue Aug 27 10:37:33 2013
New Revision: 1517781

URL: http://svn.apache.org/r1517781
Log:
(product, id) unique index on ticket

Modified:
    
bloodhound/branches/bep_0010_ticket_numbering/bloodhound_multiproduct/multiproduct/api.py

Modified: 
bloodhound/branches/bep_0010_ticket_numbering/bloodhound_multiproduct/multiproduct/api.py
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/bep_0010_ticket_numbering/bloodhound_multiproduct/multiproduct/api.py?rev=1517781&r1=1517780&r2=1517781&view=diff
==============================================================================
--- 
bloodhound/branches/bep_0010_ticket_numbering/bloodhound_multiproduct/multiproduct/api.py
 (original)
+++ 
bloodhound/branches/bep_0010_ticket_numbering/bloodhound_multiproduct/multiproduct/api.py
 Tue Aug 27 10:37:33 2013
@@ -537,6 +537,7 @@ class MultiProductSystem(Component):
                 # sqlite does not support multiple auto increment columns
                 id_column.auto_increment = False
             table.columns.append(id_column)
+            table.indices.append(Index(['product', 'id'], unique=True))
 
 
         for t in table_defs:


Reply via email to