Bugzilla – Attachment 64970 Details for
Bug 18874
Add unique constraint to repeatable_holidays and special_holidays
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18874: Add unicity constraint
Bug-18874-Add-unicity-constraint.patch (text/plain), 1.07 KB, created by
Lee Jamison
on 2017-07-10 15:06:32 UTC
(
hide
)
Description:
Bug 18874: Add unicity constraint
Filename:
MIME Type:
Creator:
Lee Jamison
Created:
2017-07-10 15:06:32 UTC
Size:
1.07 KB
patch
obsolete
>From 92351fad60a34b3adcf77fb0506bfe0d2f7a94a6 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Wed, 28 Jun 2017 14:31:14 +0000 >Subject: [PATCH] Bug 18874: Add unicity constraint > >Signed-off-by: Lee Jamison <ldjamison@marywood.edu> >--- > .../data/mysql/atomicupdate/bug_18874_add_constaint_hollidays.sql | 3 +++ > 1 file changed, 3 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_18874_add_constaint_hollidays.sql > >diff --git a/installer/data/mysql/atomicupdate/bug_18874_add_constaint_hollidays.sql b/installer/data/mysql/atomicupdate/bug_18874_add_constaint_hollidays.sql >new file mode 100644 >index 0000000..0a8b177 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_18874_add_constaint_hollidays.sql >@@ -0,0 +1,3 @@ >+ALTER IGNORE TABLE special_holidays ADD CONSTRAINT UNIQUE daymonthyear (branchcode, day, month, year); >+ALTER IGNORE TABLE repeatable_holidays ADD CONSTRAINT UNIQUE daymonth (branchcode, day, month); >+ALTER IGNORE TABLE repeatable_holidays ADD CONSTRAINT UNIQUE weekday (branchcode, weekday); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18874
:
64705
| 64970