Bugzilla – Attachment 34330 Details for
Bug 11165
Save and update auth_header.modification_time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11165: Automatically save the authority last modification time
Bug-11165-Automatically-save-the-authority-last-mo.patch (text/plain), 1.51 KB, created by
Jonathan Druart
on 2014-12-11 15:54:15 UTC
(
hide
)
Description:
Bug 11165: Automatically save the authority last modification time
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-12-11 15:54:15 UTC
Size:
1.51 KB
patch
obsolete
>From 253ce08130f1e4a6cd29104b560219906bd20d3a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 11 Dec 2014 16:49:34 +0100 >Subject: [PATCH] Bug 11165: Automatically save the authority last modification > time > >This patch rename the column auth_header.datemodified with modification_time. >Now this column will be automatically updated when a row will be >updated. > >Test plan: >0/ Verify that la major part of your auth_header.datemodified is set to >null >1/ Execute the updatedb entry >2/ Verify that the column is renamed and the values is set to now >(something better to suggest?) >3/ Update an authority and verify (using the sql cli) that this value >has been updated. >--- > installer/data/mysql/updatedatabase.pl | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index cf17e0b..f61a5ad 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -9585,6 +9585,16 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "3.19.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q| >+ ALTER TABLE auth_header >+ CHANGE COLUMN datemodified modification_time TIMESTAMP NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP >+ |); >+ print "Upgrade to $DBversion done (Bug 11165: Update auth_header.datemodified when updated)\n"; >+ SetVersion ($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >2.1.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 11165
:
34330
|
36999
|
37000
|
37006
|
38026