diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-29 18:24:09 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-11-29 18:24:09 +0000 |
commit | d98a1d1bfeb567ba9159e612cfb0211246ae0a57 (patch) | |
tree | df51d8117a6c455f659380a99012cce76a37dc90 /sql | |
parent | 99c5003f6efef515bbc78c68234c75a2b740e770 (diff) |
Adding the fixes for the primary key on the recurring email and print tables
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1918 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql')
-rw-r--r-- | sql/fixes/recurring_pkey_duplicate.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/fixes/recurring_pkey_duplicate.sql b/sql/fixes/recurring_pkey_duplicate.sql new file mode 100644 index 00000000..9c30a0c7 --- /dev/null +++ b/sql/fixes/recurring_pkey_duplicate.sql @@ -0,0 +1,9 @@ +-- SC: Corrects the primary key constraints on the recurringemail and print +-- tables. The original primary keys are too restrictive and go against +-- how the application works in that they don't allow for printing or +-- emailing multiple forms as part of a recurring transaction. + +ALTER TABLE recurringemail DROP CONSTRAINT recurringemail_pkey; +ALTER TABLE recurringemail ADD PRIMARY KEY (id, formname); +ALTER TABLE recurringprint DROP CONSTRAINT recurringprint_pkey; +ALTER TABLE recurringprint ADD PRIMARY KEY (id, formname); |