From 256785f5db4ae2ad45de2b3658ce25d462687164 Mon Sep 17 00:00:00 2001 From: Brendan A Gallagher Date: Thu, 3 Mar 2016 19:12:06 +0000 Subject: [PATCH] DBRev update Bug 14168 - enhance streaming cataloging to include youtube Signed-off-by: Brendan A Gallagher --- Koha.pm | 2 +- .../bug_14168-add_html5mediayoutube_syspref.sql | 2 -- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 3 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_14168-add_html5mediayoutube_syspref.sql diff --git a/Koha.pm b/Koha.pm index 824df9bf11..da015c37fe 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.033"; +$VERSION = "3.23.00.035"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_14168-add_html5mediayoutube_syspref.sql b/installer/data/mysql/atomicupdate/bug_14168-add_html5mediayoutube_syspref.sql deleted file mode 100644 index d45328f685..0000000000 --- a/installer/data/mysql/atomicupdate/bug_14168-add_html5mediayoutube_syspref.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES -('HTML5MediaYouTube',0,'Embed|Don\'t embed','YouTube links as videos','YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e9cd206e7c..18eea53a34 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11954,6 +11954,14 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.23.00.035"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('HTML5MediaYouTube',0,'Embed|Don\'t embed','YouTube links as videos','YesNo'); + }); + print "Upgrade to $DBversion done (Bug 11023: Adds field 'new' in items and deleteditems tabl es)\n"; + SetVersion($DBversion); + } # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 -- 2.39.5