1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Added custom fields to recurring expense (#2878)

This commit is contained in:
Christopher Di Carlo 2019-06-27 08:07:40 -04:00 committed by David Bomba
parent 048ee7181e
commit 0c6a8cee73
2 changed files with 33 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class RecurringExpense extends EntityModel
//'start_date',
//'end_date',
'frequency_id',
'custom_value1',
'custom_value2',
];
/**

View File

@ -0,0 +1,31 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddCustomRecurringExpenseFields extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('recurring_expenses', function ($table) {
$table->text('custom_value1')->nullable();
$table->text('custom_value2')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}