]> git.koha-community.org Git - koha.git/commit
Bug 24883: Command line utility to load yaml files
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Mon, 16 Mar 2020 21:44:44 +0000 (18:44 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 27 Mar 2020 12:11:05 +0000 (12:11 +0000)
commitf52c9fde3f9d13339b24c4acbe756b872e762c09
tree68841fafbfb5e7ff42e098896aed67180564da8f
parent93393036e5fd425e6bc1b8e107b34664c2018720
Bug 24883: Command line utility to load yaml files

This patch adds a command line utility to load
yaml files.

To test:
1) Apply the patch
2) Try loading a file, e.g. sample notices
 a) mysql -e "delete from letter"
 b) misc/load_yaml.pl -f installer/data/mysql/en/mandatory/sample_notices.yml
3) Try loading a file with a syntax error,
   edit previous file adding ':' at the end of a field without quotes
   then load again

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/load_yaml.pl [new file with mode: 0755]