Koha-clms/installer/data/mysql
Jonathan Druart 135f98ee62 Bug 12601: Add a foreign key for aqorders.budget_id
When creating an order, the fund value is mandatory but the DB structure
does not show this constraint.

The aqorders.budget_id field should be linked to aqbudgets.budget_id.

The updatedatabase.pl (entry 3.01.00.077) commented this constraint,
certainly for a retro compatibility reason.

Actually I found some cases (in production) where aqorders.budget_id is
set to "0". To add this constraint, we should add a temporary fund to
linked orphan orders.

Test plan:
0/ Verify it is not possible to create an order not linked to a fund via
the Koha interface.
1/ Using your SQL CLI (or equivalent), create or update 1+ orders and set
"0" in the budget_id field.
2/ Execute the updatedabase script.
3/ Verify that your order is linked to a new fund (which is linked to a
new budget).
4/ Verify the constraint has correctly been added (show create table
aqorders).

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-02-05 15:16:32 -03:00
..
atomicupdate Bug 11867: MTT: Manage *_PHONE notices 2014-05-02 20:29:20 +00:00
de-DE Bug 13566 - Change translation for 'Rotating collection' in German web installer 2015-01-14 12:39:53 -03:00
en Bug 8909: MARC21 240$a (Uniform title) is not a URL 2015-01-04 12:30:38 -03:00
es-ES Bug 8909: MARC21 240$a (Uniform title) is not a URL 2015-01-04 12:30:38 -03:00
fr-FR Bug 13346: OpacExportOptions becomes multiple 2015-01-04 12:36:45 -03:00
it-IT Bug 8909: MARC21 240$a (Uniform title) is not a URL 2015-01-04 12:30:38 -03:00
mandatory Bug 12250: Update descriptions for languages, scripts and regions 2014-11-07 15:18:01 -03:00
nb-NO Bug 8909: MARC21 240$a (Uniform title) is not a URL 2015-01-04 12:30:38 -03:00
pl-PL Bug 13373 - [QA Followup] - Update Polish web installer sample data files 2015-01-26 16:33:36 -03:00
ru-RU Bug 8909: MARC21 240$a (Uniform title) is not a URL 2015-01-04 12:30:38 -03:00
uk-UA Bug 8909: MARC21 240$a (Uniform title) is not a URL 2015-01-04 12:30:38 -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 12601: Add a foreign key for aqorders.budget_id 2015-02-05 15:16:32 -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 13346: OpacExportOptions becomes multiple 2015-01-04 12:36:45 -03:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 12601: Add a foreign key for aqorders.budget_id 2015-02-05 15:16:32 -03:00