Bug 23895: Move installer file into the mandatory directory
commita15a7f5d81bde1a728b77f9ce69d3ff6382782e0
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Jun 2020 10:56:56 +0000 (16 12:56 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Oct 2020 12:50:07 +0000 (14 14:50 +0200)
treebbe8a8feef1718eedaa72d047d45201726b0252c
parentb845c5601a8306704be3c00c33b95da454182359
Bug 23895: Move installer file into the mandatory directory

Prior to this patch we had a confusing situation, mandatory files were
in both installer/data/mysql and installer/data/mysql/mandatory
To make things clearer this patch move them all into the mandatory
subdir.
However kohastructure.sql stay in the "root" directory.

Test plan:
1. Drop and recreate your DB and use the installer to populate the DB
2. Use the merge request code from misc4dev to test the reset_all alias
3. Still with the merge request from misc4dev checkout master (you can
also try 19.11 and/or 19.05) and reset_all again
=> All the data from the SQL mandatory files must have been correctly
inserted into the DB

https://gitlab.com/koha-community/koha-misc4dev/-/issues/46

Note that this patch also remove the x flag for subtag_registry.sql

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Installer.pm
installer/data/mysql/mandatory/account_credit_types.sql [moved from installer/data/mysql/account_credit_types.sql with 100% similarity]
installer/data/mysql/mandatory/account_debit_types.sql [moved from installer/data/mysql/account_debit_types.sql with 100% similarity]
installer/data/mysql/mandatory/account_offset_types.sql [moved from installer/data/mysql/account_offset_types.sql with 100% similarity]
installer/data/mysql/mandatory/audio_alerts.sql [moved from installer/data/mysql/audio_alerts.sql with 100% similarity]
installer/data/mysql/mandatory/subtag_registry.sql [changed mode: 0755->0644]
installer/data/mysql/mandatory/sysprefs.sql [moved from installer/data/mysql/sysprefs.sql with 100% similarity]
installer/data/mysql/mandatory/userflags.sql [moved from installer/data/mysql/userflags.sql with 100% similarity]
installer/data/mysql/mandatory/userpermissions.sql [moved from installer/data/mysql/userpermissions.sql with 100% similarity]