DBRev update Bug 14168 - enhance streaming cataloging to include youtube
authorBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 3 Mar 2016 19:12:06 +0000 (19:12 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 3 Mar 2016 19:12:06 +0000 (19:12 +0000)
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_14168-add_html5mediayoutube_syspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 824df9b..da015c3 100644 (file)
--- 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 (file)
index d45328f..0000000
+++ /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');
index e9cd206..18eea53 100755 (executable)
@@ -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