mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
Added custom fields to recurring expense (#2878)
This commit is contained in:
parent
048ee7181e
commit
0c6a8cee73
@ -49,6 +49,8 @@ class RecurringExpense extends EntityModel
|
|||||||
//'start_date',
|
//'start_date',
|
||||||
//'end_date',
|
//'end_date',
|
||||||
'frequency_id',
|
'frequency_id',
|
||||||
|
'custom_value1',
|
||||||
|
'custom_value2',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user