1. Olemis Lang
  2. bloodhound-tlp

Commits

mat...@13f79535-47bb-0310-9956-ffa450edef68  committed 8ac17e5

(product, id) unique index on ticket

  • Participants
  • Parent commits c9f1bb2
  • Branches bep_0010_ticket_numbering

Comments (0)

Files changed (1)

File bloodhound_multiproduct/multiproduct/api.py

View file
  • Ignore whitespace
                 # 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: