From 0c6a8cee733a21b95da95d5991b45e7cfc6cd9b7 Mon Sep 17 00:00:00 2001 From: Christopher Di Carlo Date: Thu, 27 Jun 2019 08:07:40 -0400 Subject: [PATCH] Added custom fields to recurring expense (#2878) --- app/Models/RecurringExpense.php | 2 ++ ...49_add_custom_recurring_expense_fields.php | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 database/migrations/2019_06_27_102649_add_custom_recurring_expense_fields.php diff --git a/app/Models/RecurringExpense.php b/app/Models/RecurringExpense.php index 8eb8b6c6f3..f7963edafd 100644 --- a/app/Models/RecurringExpense.php +++ b/app/Models/RecurringExpense.php @@ -49,6 +49,8 @@ class RecurringExpense extends EntityModel //'start_date', //'end_date', 'frequency_id', + 'custom_value1', + 'custom_value2', ]; /** diff --git a/database/migrations/2019_06_27_102649_add_custom_recurring_expense_fields.php b/database/migrations/2019_06_27_102649_add_custom_recurring_expense_fields.php new file mode 100644 index 0000000000..5950c26ec8 --- /dev/null +++ b/database/migrations/2019_06_27_102649_add_custom_recurring_expense_fields.php @@ -0,0 +1,31 @@ +text('custom_value1')->nullable(); + $table->text('custom_value2')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}