Bug 19524: Update database
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 7 Jun 2018 10:48:30 +0000 (10:48 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 18 Jul 2018 16:49:29 +0000 (16:49 +0000)
Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
installer/data/mysql/atomicupdate/bug_19524.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql

diff --git a/installer/data/mysql/atomicupdate/bug_19524.sql b/installer/data/mysql/atomicupdate/bug_19524.sql
new file mode 100644 (file)
index 0000000..3e30d59
--- /dev/null
@@ -0,0 +1 @@
+ALTER TABLE patron_lists ADD COLUMN shared tinyint(1) default 0 AFTER owner;
index 20b1a57..34545d0 100644 (file)
@@ -3518,6 +3518,7 @@ CREATE TABLE patron_lists (
   patron_list_id int(11) NOT NULL AUTO_INCREMENT, -- unique identifier
   name varchar(255) CHARACTER SET utf8mb4 NOT NULL,  -- the list's name
   owner int(11) NOT NULL,                         -- borrowernumber of the list creator
+  shared tinyint(1) default 0,
   PRIMARY KEY (patron_list_id),
   KEY owner (owner)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;