Bugzilla – Attachment 16638 Details for
Bug 7241
circulation action logs record biblionumber instead of item number
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7241 follow-up: DB changes
Bug-7241-follow-up-DB-changes.patch (text/plain), 2.65 KB, created by
Marcel de Rooy
on 2013-03-21 14:01:39 UTC
(
hide
)
Description:
Bug 7241 follow-up: DB changes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-03-21 14:01:39 UTC
Size:
2.65 KB
patch
obsolete
>From bb680b7f2ec4dbc200419f368d7f7e82a9eaa480 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Thu, 21 Mar 2013 14:30:46 +0100 >Subject: [PATCH] Bug 7241 follow-up: DB changes >Content-Type: text/plain; charset="utf-8" > >Reset timestamp modification on update after patch application. >Give more information about the log history fix. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/kohastructure.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 4 +++- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 2909dcd..c74c39b 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2524,7 +2524,7 @@ CREATE TABLE `accountoffsets` ( > 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, -- the date and time the action took place >+ `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update 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` text, -- the module this action was taken against > `action` text, -- the action (includes things like DELETED, ADDED, MODIFY, etc) >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 1edbc4e..f3a1065 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6659,7 +6659,9 @@ $DBversion = "3.11.00.XXX"; > if ( CheckVersion($DBversion) ) { > $dbh->do("ALTER TABLE action_logs CHANGE timestamp timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;"); > $dbh->do("UPDATE action_logs SET info=(SELECT itemnumber FROM items WHERE biblionumber= action_logs.info LIMIT 1) WHERE module='CIRCULATION' AND action in ('ISSUE','RETURN');"); >- print "Upgrade to $DBversion done (Bug 7241: Changing timestamp autoupdate on action_logs; setting items to circulation logs where missing)\n"; >+ $dbh->do("ALTER TABLE action_logs CHANGE timestamp timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"); >+ print "Upgrade to $DBversion done (Bug 7241: Fix on circulation logs)\n"; >+ print "WARNING about bug 7241: to partially correct the broken logs, the log history is filled with the first found item for each biblio.\n"; > SetVersion($DBversion); > } > >-- >1.7.7.6
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 7241
:
7088
|
7471
|
9870
|
11415
|
12043
|
12434
|
14745
|
14945
|
16202
|
16627
|
16636
|
16637
| 16638 |
16661