Bugzilla – Attachment 86673 Details for
Bug 22512
accountlines.accountype mixes 'state' and 'type'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22512: Add status field to accountlines
Bug-22512-Add-status-field-to-accountlines.patch (text/plain), 1.83 KB, created by
Martin Renvoize (ashimema)
on 2019-03-15 13:55:24 UTC
(
hide
)
Description:
Bug 22512: Add status field to accountlines
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-03-15 13:55:24 UTC
Size:
1.83 KB
patch
obsolete
>From 20b8b677b1ac8e856df959ca5cd5ad51b0b2ac0c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 14 Mar 2019 12:14:17 +0000 >Subject: [PATCH] Bug 22512: Add status field to accountlines > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../data/mysql/atomicupdate/bug_22512.perl | 18 ++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 19 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_22512.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_22512.perl b/installer/data/mysql/atomicupdate/bug_22512.perl >new file mode 100644 >index 0000000000..206a829d93 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_22512.perl >@@ -0,0 +1,18 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if ( CheckVersion($DBversion) ) { >+ >+ if ( !column_exists( 'accountlines', 'status' ) ) { >+ $dbh->do( >+ qq{ >+ ALTER TABLE `accountlines` >+ ADD >+ `status` varchar(16) DEFAULT NULL >+ AFTER >+ `accounttype` >+ } >+ ); >+ } >+ >+ SetVersion($DBversion); >+ print "Upgrade to $DBversion done (Bug 22512 - Add status to accountlines)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 510e84e996..5e770cd203 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2676,6 +2676,7 @@ CREATE TABLE `accountlines` ( > `amount` decimal(28,6) default NULL, > `description` LONGTEXT, > `accounttype` varchar(5) default NULL, >+ `status` varchar(16) default NULL, > `payment_type` varchar(80) default NULL, -- optional authorised value PAYMENT_TYPE > `amountoutstanding` decimal(28,6) default NULL, > `lastincrement` decimal(28,6) default NULL, >-- >2.20.1
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 22512
:
86673
|
86684
|
86910