Bug 17216: Fix SQL statement to setting marc_subfield_structure.authorised_value...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 23 Nov 2016 14:47:10 +0000 (14:47 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 27 Feb 2017 11:03:18 +0000 (11:03 +0000)
We want to update it if it's empty, not equal to ';'
nopaste vim mode is to blame

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/updatedatabase.pl

index 3367972..3a7c9b3 100755 (executable)
@@ -13219,7 +13219,7 @@ if ( CheckVersion($DBversion) ) {
             });
 
     $dbh->do(q{
-            UPDATE marc_subfield_structure SET authorised_value = NULL WHERE authorised_value = ';';
+            UPDATE marc_subfield_structure SET authorised_value = NULL WHERE authorised_value = '';
             });
 
     # If the DB has been created before 3.19.00.006, the default collate for marc_subfield_structure if not set to utf8_unicode_ci and the new FK will not be create (MariaDB or MySQL will raise err 150)