Koha-clms/installer/data/mysql
Marcel de Rooy 3ed86a52ea Bug 14893: Separate temporary storage per instance in Upload.pm
To make life easier when multiple instances are uploading temporary
files to Koha, this patch adds the database name to the upload subfolder
in your /tmp folder.

Note: Although multiple instances could share the same subfolder for
temporary storage (hashvalue is based on a timestamp too), it will be
better to separate them for efficient housekeeping (removing older or
partial files with a cronjob etc.)
Since multiple instances come with separate permissions, keeping them in
separate folders will be much simpler.

Permanent storage is not affected by this patch. The location of permanent
storage is ruled by the upload_path in each config file. Sharing that
space is not recommended too.

Although it may not be strictly necessary yet to remove files from the old
temp storage folder (before the 3.22 release), the accompanying db rev
performs that housekeeping task.

Test plan:
[1] Do not yet apply this patch. Upload a temporary file (use the
    tools/upload.pl script without selecting a category).
[2] Check /tmp/koha_upload.
[3] Apply this patch. Run the db rev with web installer.
[4] Upload another temporary file.
[5] Check /tmp for folder [your_database]_upload.
[6] Check that /tmp/koha_upload is gone and the associated records too.
[7] Run the adjusted t/db../Upload.t

Followed test plan. Could not do steps before applying patch [1]-[2]
(I suppose a local permission problem).
After applying patch and updating db file appears in /tmp/[database]
as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 0c138700b2)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2016-02-01 17:25:31 +01:00
..
atomicupdate Bug 14893: Separate temporary storage per instance in Upload.pm 2016-02-01 17:25:31 +01:00
de-DE Bug 15181: Rename marc21 fast add framework sql file 2015-11-16 12:34:31 -03:00
en Bug 15181: Rename marc21 fast add framework sql file 2015-11-16 12:34:31 -03:00
es-ES Bug 15181: Rename marc21 fast add framework sql file 2015-11-16 12:34:31 -03:00
fr-FR Bug 15177: TO_PROCESS notice for fr-FR 2015-11-12 10:11:48 -03:00
it-IT Bug 15070: Update MARC21 it-IT frameworks to Update 21 (September 2015) 2015-11-17 09:51:55 -03:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 15181: Rename marc21 fast add framework sql file 2015-11-16 12:34:31 -03:00
pl-PL Bug 15181: Rename marc21 fast add framework sql file 2015-11-16 12:34:31 -03:00
ru-RU Bug 15177: Add missing coma in ru-RU 2015-11-12 10:11:55 -03:00
uk-UA Bug 15177: Sample notice TO_PROCESS confuses budget and fund 2015-11-12 10:11:46 -03:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl
…
kohastructure.sql Bug 14397: Fix tiny typo in database documentation 2016-01-03 11:34:49 +01:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 13022 - Hardcoded limit causes records with more than 20 items to show inaccurate statuses 2016-01-04 08:29:10 +01:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Increment version for 3.22.2 release 2016-01-27 14:12:41 +01:00
userflags.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00
userpermissions.sql Bug 13632: Populate user_flags and permissions tables in the web installer 2015-10-19 09:38:04 -03:00