Koha-clms/installer/data/mysql
Katrin Fischer ab326b368b Bug 13380: Follow-up - only run database update, when it hasn't been run already
As the ORDER_CANCELLATION_REASON authorised value has been
backported to 3.18.5, we need to make sure that the database
update is only run once.

This patch adds a check for the existance of the authorised
value in order to decide if the databaes update can be run.

To test:
- Create a branch 3.19.00.016
- Make sure you have a few orders where the cancellationreason
  is set (cancel an order, enter a reason)
- Update your branch to master + this patch
- Run the web installer
- ORDER_CANCELLATION_REASON authorised value category is created
- Reset your system preference Version to 3.19.00.015
- Run database update again - no changes are made, all is fine

Or:
- Create a branch 3.18.04 with cancelled orders
- Update to latest 3.18.x
- Make sure ORDER_CANCELLATION_REASON has been created
- Dump database
- Switch to master without this patch
- Run update - verify more O_C_R were created (bad)
- Load database
- Update to master with this patch
- All should be fine

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2015-04-08 11:08:20 -03:00
..
atomicupdate Bug 13068: [QA Follow-up] Remove the Talking-Tech-itiva file from atomicupdate 2015-03-31 11:30:54 -03:00
de-DE Bug 13855 - Fastadd framework has 2x 100$c, missing 100$a 2015-03-30 13:37:34 -03:00
en Bug 13855 - Fastadd framework has 2x 100$c, missing 100$a 2015-03-30 13:37:34 -03:00
es-ES Bug 13855 - Fastadd framework has 2x 100$c, missing 100$a 2015-03-30 13:37:34 -03:00
fr-FR Bug 13380: Add ORDER_CANCELLATION_REASON AV to all language files 2015-03-15 08:50:30 -03:00
it-IT Bug 13855 - Fastadd framework has 2x 100$c, missing 100$a 2015-03-30 13:37:34 -03:00
mandatory Bug 12250: Update descriptions for languages, scripts and regions 2014-11-07 15:18:01 -03:00
nb-NO Bug 13380: Add ORDER_CANCELLATION_REASON AV to all language files 2015-03-15 08:50:30 -03:00
pl-PL Bug 13380: Add ORDER_CANCELLATION_REASON AV to all language files 2015-03-15 08:50:30 -03:00
ru-RU Bug 12648: Link patrons to an order - DB changes 2015-03-11 11:47:16 -03:00
uk-UA Bug 12648: Link patrons to an order - DB changes 2015-03-11 11:47:16 -03:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 5786 - Move AllowOnShelfHolds and OPACItemHolds system prefs to the Circulation Matrix 2015-03-25 10:33:14 -03:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sysprefs.sql Bug 9580: (QA followup) add a Coce syspref and fix options for Providers 2015-04-01 09:31:59 -03:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 13380: Follow-up - only run database update, when it hasn't been run already 2015-04-08 11:08:20 -03:00