Bugzilla – Attachment 67891 Details for
Bug 12768
Replacement cost and processing fee management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12768 - DB changes
Bug-12768---DB-changes.patch (text/plain), 2.30 KB, created by
Jonathan Druart
on 2017-10-10 20:30:10 UTC
(
hide
)
Description:
Bug 12768 - DB changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-10-10 20:30:10 UTC
Size:
2.30 KB
patch
obsolete
>From db7aa80479f12e334b3d0c35d0022c0756557f9b Mon Sep 17 00:00:00 2001 >From: charles <charles@inlibro.com> >Date: Wed, 22 Apr 2015 16:03:54 -0400 >Subject: [PATCH] Bug 12768 - DB changes > >Signed-off-by: Eivin Giske Skaaren <eivin@sysmystic.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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 0000000000..212c52b7ac >--- /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 eb02c95e57..0c8a23ad52 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.11.0
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 12768
:
34333
|
34334
|
36350
|
36505
|
36506
|
36552
|
36553
|
36554
|
36555
|
38365
|
38367
|
38368
|
38375
|
39298
|
39299
|
39300
|
39999
|
40000
|
40001
|
40002
|
42157
|
42158
|
43181
|
43546
|
64775
|
64776
|
66760
|
66761
|
67875
|
67876
|
67877
|
67878
|
67891
|
67892
|
67893
|
67894
|
67895
|
67896
|
67897
|
68035
|
68036
|
68037
|
68038
|
68039
|
68040
|
68041
|
68042
|
68076
|
68264
|
68265
|
68266
|
68267
|
68268
|
68269
|
68270
|
68271
|
68272
|
68273
|
68274
|
68332
|
68415
|
68416
|
68417
|
68426
|
68427