Bugzilla – Attachment 96832 Details for
Bug 24329
Patron cardnumber change times are lost during upgrade for bug 3820
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24329: Prevent update of timestamp on action_logs updates
Bug-24329-Prevent-update-of-timestamp-on-actionlog.patch (text/plain), 2.20 KB, created by
Jonathan Druart
on 2020-01-05 22:09:20 UTC
(
hide
)
Description:
Bug 24329: Prevent update of timestamp on action_logs updates
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-01-05 22:09:20 UTC
Size:
2.20 KB
patch
obsolete
>From dc092e33d577d93e117b46e0a9ef093172ded0df Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 2 Jan 2020 13:03:07 +0000 >Subject: [PATCH] Bug 24329: Prevent update of timestamp on action_logs updates > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > installer/data/mysql/atomicupdate/bug_24329.perl | 8 ++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_24329.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24329.perl b/installer/data/mysql/atomicupdate/bug_24329.perl >new file mode 100644 >index 0000000000..3d85aa519d >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24329.perl >@@ -0,0 +1,8 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( "ALTER TABLE action_logs MODIFY COLUMN `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP" ); >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24329 - Do not update action_log.timestamp)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index b2f2576754..c702d405a0 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2749,7 +2749,7 @@ CREATE TABLE `account_offsets` ( > DROP TABLE IF EXISTS `action_logs`; > CREATE TABLE `action_logs` ( -- logs of actions taken in Koha (requires that the logs be turned on) > `action_id` int(11) NOT NULL auto_increment, -- unique identifier for each action >- `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time the action took place >+ `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, -- the date and time the action took place > `user` int(11) NOT NULL default 0, -- the staff member who performed the action (borrowers.borrowernumber) > `module` MEDIUMTEXT, -- the module this action was taken against > `action` MEDIUMTEXT, -- the action (includes things like DELETED, ADDED, MODIFY, etc) >-- >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 24329
:
96739
|
96740
|
96775
|
96776
|
96831
| 96832 |
96833