Bug 23148: DBRev 20.05.02.002

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2020-07-27 16:03:12 +00:00
parent 917273a2f8
commit 3d627c3823
3 changed files with 8 additions and 10 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "20.05.02.001";
$VERSION = "20.05.02.002";
sub version {
return $VERSION;

View File

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
# you can use $dbh here like:
$dbh->do( "UPDATE itemtypes SET imageurl = REPLACE (imageurl, '.gif', '.png') WHERE imageurl LIKE 'bridge/%'" );
# Always end with this (adjust the bug info)
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 23148: Replace Bridge icons with transparent PNG files)\n";
}

View File

@ -22234,6 +22234,13 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 24379, "Set login_attempts NOT NULL" );
}
$DBversion = '20.05.02.002';
if( CheckVersion( $DBversion ) ) {
$dbh->do( "UPDATE itemtypes SET imageurl = REPLACE (imageurl, '.gif', '.png') WHERE imageurl LIKE 'bridge/%'" );
NewVersion( $DBversion, 23148, "Replace Bridge icons with transparent PNG files" );
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';