Koha/installer/data/mysql
Marcel de Rooy 0c138700b2 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
2016-01-29 01:17:55 +00:00
..
atomicupdate Bug 14893: Separate temporary storage per instance in Upload.pm 2016-01-29 01:17:55 +00:00
de-DE Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
en Bug 8753 - Add forgot password link to OPAC 2016-01-27 06:40:53 +00:00
es-ES Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
fr-FR Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
it-IT Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
pl-PL Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
ru-RU Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00:00
uk-UA Bug 8753 [QA Followup] - Add notice to translations 2016-01-27 23:44:29 +00: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 8753: [QA Follow-up] Primary key and collation 2016-01-27 06:40:56 +00: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 8753 - propagating the changes to kohastructure.sql and sysprefs.sql 2016-01-27 06:40:55 +00:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl DBRev for bug 8753 (removing the atomicupdate too). 2016-01-27 17:58:47 +00: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 11569: Correcting typos in userpermissions.sql 2015-12-30 16:21:38 +00:00