From f4314564d679a0f3a9d57d172e7b52d3f4eb9c26 Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Thu, 7 Jun 2018 10:48:30 +0000
Subject: [PATCH] Bug 19524: Update database
Content-Type: text/plain; charset=utf-8

Signed-off-by: George Williams <george@nekls.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 installer/data/mysql/atomicupdate/bug_19524.sql | 1 +
 installer/data/mysql/kohastructure.sql          | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 installer/data/mysql/atomicupdate/bug_19524.sql

diff --git a/installer/data/mysql/atomicupdate/bug_19524.sql b/installer/data/mysql/atomicupdate/bug_19524.sql
new file mode 100644
index 0000000..3e30d59
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19524.sql
@@ -0,0 +1 @@
+ALTER TABLE patron_lists ADD COLUMN shared tinyint(1) default 0 AFTER owner;
diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql
index 909eda2..26a79b2 100644
--- a/installer/data/mysql/kohastructure.sql
+++ b/installer/data/mysql/kohastructure.sql
@@ -3516,6 +3516,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;
-- 
2.1.4