summaryrefslogtreecommitdiff
path: root/sql/fixes/recurring_pkey_duplicate.sql
blob: 9c30a0c778e9c07b89a06b90cdf07a1c37e05e43 (plain)
  1. -- SC: Corrects the primary key constraints on the recurringemail and print
  2. -- tables. The original primary keys are too restrictive and go against
  3. -- how the application works in that they don't allow for printing or
  4. -- emailing multiple forms as part of a recurring transaction.
  5. ALTER TABLE recurringemail DROP CONSTRAINT recurringemail_pkey;
  6. ALTER TABLE recurringemail ADD PRIMARY KEY (id, formname);
  7. ALTER TABLE recurringprint DROP CONSTRAINT recurringprint_pkey;
  8. ALTER TABLE recurringprint ADD PRIMARY KEY (id, formname);