Bug 19794: DBRev 17.12.00.032

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-04-19 12:26:21 -03:00
parent 233be0fe13
commit 26201f906c
3 changed files with 17 additions and 5 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 = "17.12.00.031";
$VERSION = "17.12.00.032";
sub version {
return $VERSION;

View file

@ -1,4 +0,0 @@
UPDATE letter SET code = "SERIAL_ALERT" WHERE code = "RLIST";
UPDATE letter SET name = "New serial issue" WHERE name = "Routing List";
UPDATE subscription SET letter = "SERIAL_ALERT" WHERE letter = "RLIST";
-- print Bug 19794: Rename RLIST notice to SERIAL_ALERT

View file

@ -15840,6 +15840,22 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 11674 - Add system preference MarcFieldDocURL)\n";
}
$DBversion = '17.12.00.032';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q|
UPDATE letter SET code = "SERIAL_ALERT" WHERE code = "RLIST";
|);
$dbh->do(q|
UPDATE letter SET name = "New serial issue" WHERE name = "Routing List";
|);
$dbh->do(q|
UPDATE subscription SET letter = "SERIAL_ALERT" WHERE letter = "RLIST";
|);
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19794 - Rename RLIST notice to SERIAL_ALERT)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.