Bug 21747: Insert fine_increase and fine_decrease for new installs
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 27 Feb 2019 19:05:20 +0000 (16:05 -0300)
committerroot <root@f1ebe1bec408>
Wed, 27 Feb 2019 20:50:46 +0000 (20:50 +0000)
This fixes Circulation.t
koha_1       | DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (`koha_kohadev`.`account_offsets`, CONSTRAINT `account_offsets_ibfk_t` FOREIGN KEY (`type`) REFERENCES `account_offset_types` (`type`) ON DELETE CASCADE ON UPDATE CASCADE) [for Statement "INSERT INTO `account_offsets` ( `amount`, `debit_id`, `type`) VALUES ( ?, ?, ? )" with ParamValues: 0=1, 1='22', 2='fine_increase'] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

installer/data/mysql/account_offset_types.sql

index 083e56c..ad79879 100644 (file)
@@ -9,7 +9,8 @@ INSERT INTO account_offset_types ( type ) VALUES
 ('Forgiven'),
 ('Dropbox'),
 ('Rental Fee'),
-('Fine Update'),
+('fine_increase'),
+('fine_decrease'),
 ('Fine'),
 ('Void Payment'),
 ('Credit Applied');