Bugzilla – Attachment 117181 Details for
Bug 26997
Database Mysql Version 8.0.22 failed to Update During Upgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26997: (QA follow-up) Fix Typo
Bug-26997-QA-follow-up-Fix-Typo.patch (text/plain), 3.85 KB, created by
Martin Renvoize
on 2021-02-23 09:07:34 UTC
(
hide
)
Description:
Bug 26997: (QA follow-up) Fix Typo
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2021-02-23 09:07:34 UTC
Size:
3.85 KB
patch
obsolete
>From ddc176a2c8c7ab1b85d406eecff177b39351d46d Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 19 Feb 2021 12:14:55 +0000 >Subject: [PATCH] Bug 26997: (QA follow-up) Fix Typo > >Feel free to squash this ;) > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/updatedatabase.pl | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 048fc1ea2b..7ddae03e23 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -151,7 +151,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > > $DBversion = "3.00.00.006"; > if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >- sanitize_zeo_date('issues', 'issuedate'); >+ sanitize_zero_date('issues', 'issuedate'); > print "Upgrade to $DBversion done (filled issues.issuedate with timestamp)\n"; > SetVersion ($DBversion); > } >@@ -1950,7 +1950,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > print "Upgrade to $DBversion done (remove default '0000-00-00' in subscriptionhistory.enddate field)\n"; > $dbh->do("ALTER TABLE `subscriptionhistory` CHANGE `enddate` `enddate` DATE NULL DEFAULT NULL "); > >- sanitize_zeo_date('subscriptionhistory', 'enddate'); >+ sanitize_zero_date('subscriptionhistory', 'enddate'); > > SetVersion ($DBversion); > } >@@ -2905,7 +2905,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > # match the new type of the corresponding field > $dbh->do('ALTER TABLE fundmapping modify column bookfundid varchar(30)'); > # System did not ensure budgetdate was valid historically >- sanitize_zeo_date('fundmapping', 'budgetdate'); >+ sanitize_zero_date('fundmapping', 'budgetdate'); > $dbh->do(q|UPDATE fundmapping SET budgetdate = entrydate WHERE budgetdate IS NULL|); > # We save the map in fundmapping in case you need later processing > $dbh->do(q|ALTER TABLE fundmapping add column aqbudgetid integer|); >@@ -7607,7 +7607,7 @@ if ( CheckVersion($DBversion) ) { > WHERE subscriptionid = ? > |); > >- sanitize_zeo_date('subscription', 'firstacquidate'); >+ sanitize_zero_date('subscription', 'firstacquidate'); > my $get_subscriptions_sth = $dbh->prepare(qq| > SELECT subscriptionid, startdate > FROM subscription >@@ -10641,7 +10641,7 @@ if ( CheckVersion($DBversion) ) { > $DBversion = "3.21.00.009"; > if ( CheckVersion($DBversion) ) { > >- sanitize_zeo_date('aqorders', 'datecancellationprinted'); >+ sanitize_zero_date('aqorders', 'datecancellationprinted'); > > $dbh->do(q| > UPDATE aqorders SET orderstatus='cancelled' >@@ -10879,10 +10879,10 @@ if ( CheckVersion($DBversion) ) { > $DBversion = "3.21.00.023"; > if ( CheckVersion($DBversion) ) { > >- sanitize_zeo_date('borrowers', 'debarred'); >- sanitize_zeo_date('borrowers', 'dateexpiry'); >- sanitize_zeo_date('borrowers', 'dateofbirth'); >- sanitize_zeo_date('borrowers', 'dateenrolled'); >+ sanitize_zero_date('borrowers', 'debarred'); >+ sanitize_zero_date('borrowers', 'dateexpiry'); >+ sanitize_zero_date('borrowers', 'dateofbirth'); >+ sanitize_zero_date('borrowers', 'dateenrolled'); > > print "Upgrade to $DBversion done (Bug 14717: Prevent 0000-00-00 dates in patron data)\n"; > SetVersion($DBversion); >@@ -21692,9 +21692,9 @@ $DBversion = '19.12.00.076'; > if( CheckVersion( $DBversion ) ) { > my @warnings; > >- sanitize_zeo_date('serial', 'planneddate'); >- sanitize_zeo_date('serial', 'publisheddate'); >- sanitize_zeo_date('serial', 'claimdate'); >+ sanitize_zero_date('serial', 'planneddate'); >+ sanitize_zero_date('serial', 'publisheddate'); >+ sanitize_zero_date('serial', 'claimdate'); > > $dbh->do(q| > ALTER TABLE serial >-- >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 26997
:
113495
|
113600
|
114526
|
114527
|
117038
|
117178
|
117179
|
117180
|
117181
|
117428