Bugzilla – Attachment 8957 Details for
Bug 5549
Hourly Loans
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 5549: change to kohastructure.sql missing from commit 8cea8e5cc05075dc391194248d31a54586389601
bug-5549-change-to-kohastructuresql-missing-from-c.patch (text/plain), 1.84 KB, created by
MJ Ray (software.coop)
on 2012-04-06 13:58:41 UTC
(
hide
)
Description:
bug 5549: change to kohastructure.sql missing from commit 8cea8e5cc05075dc391194248d31a54586389601
Filename:
MIME Type:
Creator:
MJ Ray (software.coop)
Created:
2012-04-06 13:58:41 UTC
Size:
1.84 KB
patch
obsolete
>From 0d2e583f0f9ed9c21f63e8d4033fa9a2863577b0 Mon Sep 17 00:00:00 2001 >From: MJ Ray <mjr@phonecoop.coop> >Date: Thu, 5 Apr 2012 18:56:39 +0100 >Subject: [PATCH] bug 5549: change to kohastructure.sql missing from commit 8cea8e5cc05075dc391194248d31a54586389601 > >Also deletes earlier updatedatabase addition of lengthunit to avoid errors for people upgrading from table (thanks Katrin for the idea) >--- > installer/data/mysql/kohastructure.sql | 1 + > installer/data/mysql/updatedatabase.pl | 10 ++++++++++ > 2 files changed, 11 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 4912e19..b85ab5f 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -990,6 +990,7 @@ CREATE TABLE `issuingrules` ( > `chargename` varchar(100) default NULL, > `maxissueqty` int(4) default NULL, > `issuelength` int(4) default NULL, >+ `lengthunit` varchar(10) default 'days', > `hardduedate` date default NULL, > `hardduedatecompare` tinyint NOT NULL default "0", > `renewalsallowed` smallint(6) NOT NULL default "0", >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 503c8ee..dcfccde 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5146,6 +5146,16 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > SetVersion($DBversion); > } > >+ >+ >+$DBversion = "3.07.00.XXX"; >+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ $dbh->do("alter table issuingrules add column lengthunit varchar(10) default 'days' after issuelength"); >+ print "Upgrade to $DBversion done (Setting up issues tables for hourly loans (repeat))\n"; >+ SetVersion($DBversion); >+} >+ >+ > =head1 FUNCTIONS > > =head2 DropAllForeignKeys($table) >-- >1.7.2.5
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 5549
:
5051
|
5436
|
8228
|
8321
|
8541
|
8543
|
8547
|
8932
|
8933
|
8934
|
8957
|
8958
|
8959
|
9031