Commit fe414e0d by Azhan Hannan

Table timesheet_prj add field:

tp_pd
tp_verified_by
tp_verified_at
tp_approved_by
tp_approved_at
hod_reject
bod_disapproved
verifier _remark
approver_remark
parent b39c2e4e
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddColumnInTableTimesheetPrj extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('timesheet_prj', function (Blueprint $table) {
$table->integer('tp_pd')->after('tp_pm')->unsigned()->nullable();
$table->integer('tp_verified_by')->after('tp_pd')->unsigned()->nullable();
$table->date('tp_verified_at')->after('tp_verified_by')->nullable();
$table->integer('tp_approved_by')->after('tp_verified_at')->nullable();
$table->date('tp_approved_at')->after('tp_approved_by')->nullable();
$table->date('hod_reject')->after('tp_approved_at')->nullable();
$table->date('bod_disapproved')->after('hod_reject')->nullable();
$table->string('verifier_remark', 255)->after('bod_disapproved')->nullable();
$table->string('approver_remark', 255)->after('verifier_remark')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('timesheet_prj', function (Blueprint $table) {
$table->dropColumn('tp_pd');
$table->dropColumn('tp_verified_by');
$table->dropColumn('tp_verified_at');
$table->dropColumn('tp_approved_by');
$table->dropColumn('tp_approved_at');
$table->dropColumn('hod_reject');
$table->dropColumn('bod_disapproved');
$table->dropColumn('verifier_remark');
$table->dropColumn('approver_remark');
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment