Bugzilla – Attachment 140103 Details for
Bug 7021
Add patron category to the statistics table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7021: Reintroduce usercode column
Bug-7021-Reintroduce-usercode-column.patch (text/plain), 1.43 KB, created by
Kyle M Hall (khall)
on 2022-09-02 11:15:08 UTC
(
hide
)
Description:
Bug 7021: Reintroduce usercode column
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-09-02 11:15:08 UTC
Size:
1.43 KB
patch
obsolete
>From 9294943d7c2f7d0e4e3c643a22623a4fd8e62843 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Wed, 16 Jun 2021 14:40:47 +0300 >Subject: [PATCH] Bug 7021: Reintroduce usercode column > >This patch reintroduces usercode column to >statistics table. > >To test: >1. Apply patch and update database >2. Confirm there's column usercode in statistics >table > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../Bug-7021-Reintroduce_usercode_column.perl | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/Bug-7021-Reintroduce_usercode_column.perl > >diff --git a/installer/data/mysql/atomicupdate/Bug-7021-Reintroduce_usercode_column.perl b/installer/data/mysql/atomicupdate/Bug-7021-Reintroduce_usercode_column.perl >new file mode 100644 >index 0000000000..4a7a32a69e >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/Bug-7021-Reintroduce_usercode_column.perl >@@ -0,0 +1,10 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); >+ >+ $dbh->do("ALTER TABLE statistics ADD COLUMN usercode varchar(10) AFTER ccode"); >+ >+ # Always end with this (adjust the bug info) >+ NewVersion( $DBversion, 7021, "Bug 7021 - Reintroduce usercode column"); >+} >-- >2.30.2
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 7021
:
29456
|
29508
|
122881
|
122882
|
122883
|
129119
|
129120
|
129121
|
129122
|
135269
|
135270
|
135271
|
135272
|
135273
|
135274
| 140103 |
140104
|
140105
|
140106
|
140107
|
140108
|
140109
|
140110
|
140116
|
140144
|
140845