Add invoice_documents field to tasks

This commit is contained in:
David Bomba 2020-10-27 13:27:38 +11:00
parent e17f5438ee
commit 3bef11c87e
2 changed files with 31 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class Task extends BaseModel
'time_log',
'status_id',
'status_sort_order',
'invoice_documents',
];
protected $touches = [];

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TasksInvoiceDocuments extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('tasks', function(Blueprint $table){
$table->boolean('invoice_documents')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}