From baee2e327a264c4a0de7aba633fd3c038ad74413 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 22 Apr 2015 16:03:54 -0400 Subject: [PATCH] Bug 12768 - DB changes Signed-off-by: Eivin Giske Skaaren Signed-off-by: Kyle M Hall --- installer/data/mysql/atomicupdate/bug_12768-update_schema_files.sql | 3 +++ installer/data/mysql/kohastructure.sql | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 installer/data/mysql/atomicupdate/bug_12768-update_schema_files.sql diff --git a/installer/data/mysql/atomicupdate/bug_12768-update_schema_files.sql b/installer/data/mysql/atomicupdate/bug_12768-update_schema_files.sql new file mode 100644 index 0000000..212c52b --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_12768-update_schema_files.sql @@ -0,0 +1,3 @@ +ALTER TABLE `itemtypes` MODIFY COLUMN `rentalcharge` DECIMAL(28,6) NULL DEFAULT NULL; +ALTER TABLE `itemtypes` ADD `defaultreplacecost` DECIMAL(28,6) NULL DEFAULT NULL AFTER `rentalcharge`; +ALTER TABLE `itemtypes` ADD `processfee` DECIMAL(28,6) NULL DEFAULT NULL AFTER `defaultreplacecost`; diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index b96f991..ceafba3 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -982,7 +982,9 @@ DROP TABLE IF EXISTS `itemtypes`; CREATE TABLE `itemtypes` ( -- defines the item types itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type description mediumtext, -- a plain text explanation of the item type - rentalcharge double(16,4) default NULL, -- the amount charged when this item is checked out/issued + rentalcharge decimal(28,6) default NULL, -- the amount charged when this item is checked out/issued + defaultreplacecost decimal(28,6) default NULL, -- default replacement cost + processfee decimal(28,6) default NULL, -- default text be recorded in the column note when the processing fee is applied notforloan smallint(6) default NULL, -- 1 if the item is not for loan, 0 if the item is available for loan imageurl varchar(200) default NULL, -- URL for the item type icon summary text, -- information from the summary field, may include HTML -- 2.10.2