mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 15:34:37 -04:00
Add custom values to payments table
This commit is contained in:
parent
fc92fbdaab
commit
087c442a64
@ -67,6 +67,10 @@ class Payment extends BaseModel
|
|||||||
'number',
|
'number',
|
||||||
'is_manual',
|
'is_manual',
|
||||||
'private_notes',
|
'private_notes',
|
||||||
|
'custom_value1',
|
||||||
|
'custom_value2',
|
||||||
|
'custom_value3',
|
||||||
|
'custom_value4',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CustomFieldsForPaymentsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('payments', function(Blueprint $table){
|
||||||
|
$table->string('custom_value1')->nullable();
|
||||||
|
$table->string('custom_value2')->nullable();
|
||||||
|
$table->string('custom_value3')->nullable();
|
||||||
|
$table->string('custom_value4')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
@ -3296,4 +3296,6 @@ return [
|
|||||||
'pay_with' => 'Pay with',
|
'pay_with' => 'Pay with',
|
||||||
|
|
||||||
'n/a' => 'N/A',
|
'n/a' => 'N/A',
|
||||||
|
'payment_number' => 'Payment Number',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user