From dd184c227ff6866946d0ae6bb515256cacebebde Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Sun, 9 Sep 2018 11:55:56 +0200 Subject: [PATCH] Changed io_type to i_o_type in the foreign key definitions of person targets and account classes. --- .../2018_09_07_090338_create_person_targets_table.php | 2 +- .../2018_09_07_090452_create_account_classes_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2018_09_07_090338_create_person_targets_table.php b/database/migrations/2018_09_07_090338_create_person_targets_table.php index 56ef288..05cce3e 100644 --- a/database/migrations/2018_09_07_090338_create_person_targets_table.php +++ b/database/migrations/2018_09_07_090338_create_person_targets_table.php @@ -32,7 +32,7 @@ class CreatePersonTargetsTable extends Migration // receivable. A payable is of type 'expediture' and a receivable is // of type 'income'. $table->integer('io_type')->unsigned(); - $table->foreign('io_type')->references('id')->on('io_types') + $table->foreign('io_type')->references('id')->on('i_o_types') ->onDelete('no action'); // A reference text which describes the target diff --git a/database/migrations/2018_09_07_090452_create_account_classes_table.php b/database/migrations/2018_09_07_090452_create_account_classes_table.php index 96eec90..753b324 100644 --- a/database/migrations/2018_09_07_090452_create_account_classes_table.php +++ b/database/migrations/2018_09_07_090452_create_account_classes_table.php @@ -21,7 +21,7 @@ class CreateAccountClassesTable extends Migration // The type of the account class. $table->integer('io_type')->unsigned(); - $table->foreign('io_type')->references('id')->on('io_types') + $table->foreign('io_type')->references('id')->on('i_o_types') ->onDelete('no action'); // The scope of the account class.