Bug 24328: Fix bibliographic frameworks install (linkid)

With strict mode enabled (tested with MariaDB 10.4.11)

ERROR 1366 (22007) at line 8029: Incorrect integer value: '' for column
`koha_kohadev`.`auth_subfield_structure`.`linkid` at row 769

Test plan:
Insert the .sql files from this patch and confirm that you can now
insert them correctly

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2020-01-02 13:12:58 +01:00 committed by Joy Nelson
parent 58b722ddf6
commit 618336fd14
3 changed files with 7674 additions and 7674 deletions

View File

@ -311,9 +311,9 @@ INSERT INTO `auth_subfield_structure` (`authtypecode`, `tagfield`, `tagsubfield`
('', '024', 'd', 'Zusätzliche Codes zur Standardnummer oder dem Code', 'Zusätzliche Codes zur Standardnummer oder dem Code', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', 'q', 'Nähere Angaben', 'Nähere Angaben', 1, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', 'z', 'Gelöschte(r)/ungültige(r) Standardnummer oder Code', 'Gelöschte(r)/ungültige(r) Standardnummer oder Code', 1, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '0', 'IDN des Normdatensatzes oder Standardnummer', 'IDN des Normdatensatzes oder Standardnummer', 0, 0, 0, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '024', '1', 'URI des Realweltobjects', 'URI des Realweltobjects', 0, 0, 0, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '024', '2', 'Quelle', 'Quelle', 0, 0, 0, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '024', '0', 'IDN des Normdatensatzes oder Standardnummer', 'IDN des Normdatensatzes oder Standardnummer', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '1', 'URI des Realweltobjects', 'URI des Realweltobjects', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '2', 'Quelle', 'Quelle', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '6', 'Verknüpfung', 'Verknüpfung', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '8', 'Feldverknüpfung und Reihenfolge', 'Feldverknüpfung und Reihenfolge', 1, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '031', 'a', 'Anzahl der Werke', 'Anzahl der Werke', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
@ -2049,7 +2049,7 @@ INSERT INTO `auth_subfield_structure` (`authtypecode`, `tagfield`, `tagsubfield`
('', '856', '2', 'Zugriffsart', 'Zugriffsart', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '3', 'Spezifische Materialangaben', 'Spezifische Materialangaben', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '6', 'Verknüpfung', 'Verknüpfung', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '7', 'Zugangsstatus', 'Zugangsstatus', 0, 0, 8, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '856', '7', 'Zugangsstatus', 'Zugangsstatus', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '8', 'Feldverknüpfung und Reihenfolge', 'Feldverknüpfung und Reihenfolge', 1, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '880', 'a', 'a', 'a', 1, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '880', 'b', 'b', 'b', 1, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),

View File

@ -311,9 +311,9 @@ INSERT INTO `auth_subfield_structure` (`authtypecode`, `tagfield`, `tagsubfield`
('', '024', 'd', 'Additional codes following the standard number or code', 'Additional codes following the standard number or code', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', 'q', 'Qualifying information', 'Qualifying information', 1, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', 'z', 'Canceled/invalid standard number or code', 'Canceled/invalid standard number or code', 1, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '0', 'Authority record control number or standard number', 'Authority record control number or standard number', 0, 0, 0, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '024', '1', 'Real World Object URI', 'Real World Object URI', 0, 0, 0, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '024', '2', 'Source', 'Source', 0, 0, 0, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '024', '0', 'Authority record control number or standard number', 'Authority record control number or standard number', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '1', 'Real World Object URI', 'Real World Object URI', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '2', 'Source', 'Source', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '6', 'Linkage', 'Linkage', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '024', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '031', 'a', 'Number of work', 'Number of work', 0, 0, 0, NULL, NULL, NULL, 0, 0, 0, '', ''),
@ -2049,7 +2049,7 @@ INSERT INTO `auth_subfield_structure` (`authtypecode`, `tagfield`, `tagsubfield`
('', '856', '2', 'Access method', 'Access method', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '3', 'Materials specified', 'Materials specified', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '6', 'Linkage', 'Linkage', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '7', 'Access status', 'Access status', 0, 0, 8, NULL, NULL, NULL, 0, 0, '', '', ''),
('', '856', '7', 'Access status', 'Access status', 0, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '856', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '880', 'a', 'a', 'a', 1, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),
('', '880', 'b', 'b', 'b', 1, 0, 8, NULL, NULL, NULL, 0, 0, 0, '', ''),