Bug 18248: Fix SQL statement to setting marc_subfield_structure.authorised_value to NULL

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>
(cherry picked from commit 11bae489bc)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Jonathan Druart 2016-11-23 14:47:10 +00:00 committed by Katrin Fischer
parent 0b1311ccb9
commit 9ce369fb8a
1 changed files with 1 additions and 1 deletions

View File

@ -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)