From e126fc0a1956e1eb1207378bc4a2e745e991f559 Mon Sep 17 00:00:00 2001 From: Brendan Gallagher Date: Thu, 7 Apr 2016 05:45:42 +0000 Subject: [PATCH] DBRev for Bug 15008 - Add custom HTML areas to circulation and reports home pages Signed-off-by: Brendan Gallagher --- Koha.pm | 2 +- ...d_custom_html_areas_to_circ_and_reports_home.sql | 2 -- installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql diff --git a/Koha.pm b/Koha.pm index 625c237af5..54517b6042 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 = "3.23.00.046"; +$VERSION = "3.23.00.047"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql b/installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql deleted file mode 100644 index 89ae903246..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15008_add_custom_html_areas_to_circ_and_reports_home.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetReportsHomeHTML', '', 'Show the following HTML in a div on the bottom of the reports home page', NULL, 'Free'); -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetCirculationHomeHTML', '', 'Show the following HTML in a div on the bottom of the reports home page', NULL, 'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 36aee35fc4..422ce69e9d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12206,6 +12206,19 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.23.00.047"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetReportsHomeHTML', '', 'Show the following HTML in a div on the bottom of the reports home page', NULL, 'Free'); + }); + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('IntranetCirculationHomeHTML', '', 'Show the following HTML in a div on the bottom of the reports home page', NULL, 'Free'); + }); + + print "Upgrade to $DBversion done (Bug 15008 - Add custom HTML areas to circulation and reports home pages)\n"; + SetVersion($DBversion); +} # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5