[Koha-bugs] [Bug 24912] Generate sql from yaml installer files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 20 12:21:27 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24912

--- Comment #5 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
>From bug 24883 comment 13:
"""
Now, the conversion part. 
The problem here is that all values are printed as strings, producing
INSERT INTO marc_tag_structure (
`authorised_value`,`frameworkcode`,`liblibrarian`,`libopac`,`mandatory`,`repeatable`,`tagfield`
) VALUES 
('', '', 'LEADER', 'LEADER', '1', '0', '000'),

instead of
('', '', 'LEADER', 'LEADER', 1, 0, '000'),

A file like this will fail to load with strict mode.

This could be fixed if we declare on each table which fields are numeric, and
take that into account when doing the conversion.
What do you think?
"""

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list