From 274974fdb82c0ed712b1198200554dc849ce2b67 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Apr 2018 13:31:23 -0300 Subject: [PATCH] Bug 19882: DBRev 17.12.00.030 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_19882_Add_novelist_staff_client_profile.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl diff --git a/Koha.pm b/Koha.pm index 98d51d74cc..01b2f4f7d0 100644 --- a/Koha.pm +++ b/Koha.pm @@ -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.029"; +$VERSION = "17.12.00.030"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl b/installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl deleted file mode 100644 index 4595cf587e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_19882_Add_novelist_staff_client_profile.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('NovelistSelectStaffProfile',NULL,'Novelist staff client user Profile',NULL,'free')"); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 19882 - Add Novelist Staff Client Profile)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 20b1a62990..279953faca 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15818,6 +15818,17 @@ unimarc, *, ind1:auth1, ind2:auth2|; print "Upgrade to $DBversion done (Bug 14769 - Authorities merge: Set correct indicators in biblio field (new system preference AuthorityControlledIndicators))\n"; } +$DBversion = '17.12.00.030'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) + VALUES ('NovelistSelectStaffProfile',NULL,'Novelist staff client user Profile',NULL,'free') + |); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19882 - Add system preference NovelistSelectStaffProfile)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5