Koha/installer/data/mysql/en/optional
Bernardo Gonzalez Kriegel 131183b0bf
Bug 13897: Process description, multiline values and SQL statements in YAML files
This patch adds 3 features:
1) Display description of YAML files at install time
   for frameworks, and fixes it's encoding.
2) Enable use of multiline values, field required
3) Process SQL statements declared in YAML files

With this features we can process files with the
following generic YAML strucure:

  ---
  description:
    - "File description"

  tables:
    - table_name:
        translatable: [ title, content ]
        multiline: [ content ]
        rows:
          - title: "Example title"
            content:
              - "Content:"
              - ""
              - "This is the content."
            id: 1
            value: ~

  sql_statements:
    - "UPDATE table_name SET value ='empty' WHERE value IS NULL"
  ...

* file description is now inside the YAML, can have multiple
  lines.
  This attribute is expected in all YAML files.
* translatable attribute in table declare fields that can be
  translated
* multiline attribute in table declare fields that can have
  multiple lines of content, they are joined using '\r\n'
  before insert into database.
  This is useful to express fields like 'news' content, and
  to simplify it's translation.
  '\r\n' is used for correct display in Windows clients.
* sql_statements allows to add multiple SQL sentences, not
  insertions normally, that are executed in order.

This features are not needed for the example file of this patch,
but will be used in new bugs.

To test:
1) Use the same test plan of first patch.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-09 13:50:28 +00:00
..
auth_val.yml Bug 13897: Process description, multiline values and SQL statements in YAML files 2020-03-09 13:50:28 +00:00
csv_profiles.sql Bug 8612: Update installer files for late_issues 2017-06-05 12:56:20 -03:00
csv_profiles.txt
marc21_holdings_coded_values.sql Bug 22095: Replaced dead links with working links 2019-01-17 02:23:27 +00:00
marc21_holdings_coded_values.txt Bug 22095: Replaced dead links with working links 2019-01-17 02:23:27 +00:00
marc21_relatorterms.sql
marc21_relatorterms.txt
parameters.sql
parameters.txt
patron_atributes.sql Bug 12267: [QA Follow-up] Adjust installer files; tiny text edit 2016-04-22 23:08:32 +00:00
patron_atributes.txt Bug 21710: Fix typo in atributes in installer 2019-02-15 18:42:48 +00:00
patron_categories.sql Bug 17855: Onboarding tool 2017-04-28 08:36:19 -04:00
patron_categories.txt Bug 17855: Onboarding tool 2017-04-28 08:36:19 -04:00
sample_creator_data.sql Bug 10222: Correct and expand to other languages 2017-12-07 09:37:11 -03:00
sample_creator_data.txt
sample_itemtypes.sql Bug 19377: Remove $5 charge from sample item types 2017-10-27 16:05:56 -03:00
sample_itemtypes.txt
sample_libraries.sql Bug 16735: Clean up sample data 2018-02-12 15:41:25 -03:00
sample_libraries.txt Bug 17855: Onboarding tool 2017-04-28 08:36:19 -04:00
sample_libraries_holidays.sql Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-01-20 14:03:51 +00:00
sample_libraries_holidays.txt Bug 24289: Make sure sample_holidays will load after sample_libraries 2020-01-20 14:03:51 +00:00
sample_news.sql Bug 17960: Update installed files 2017-02-06 17:42:13 +00:00
sample_news.txt
sample_patrons.sql Bug 14570: (QA follow-up) fix sample borrowers, remove guarantorid) 2019-08-20 16:05:24 +01:00
sample_patrons.txt
sample_quotes.sql Bug 16573: fix structure and sample data for MySQL 5.7 2016-08-01 09:39:14 +00:00
sample_quotes.txt
sample_z3950_servers.sql Bug 23997: Escape z3950servers.rank as it's a new MySQL 8 kw 2019-11-08 11:22:31 +00:00
sample_z3950_servers.txt Bug 17855: Onboarding tool 2017-04-28 08:36:19 -04:00