Commit 7a68bb74 by Azhan Hannan

change datatype in timesheet master table to decimals

parent 18870a35
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeColumnTypeInTimesheetMasterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('timesheet_master', function (Blueprint $table) {
$table->decimal('tm_chargeable_hrs', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_chargeable_days', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_overhead_hrs', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_overhead_days', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_overtime_hrs', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_total_hours', 10, 2)->unsigned()->nullable()->change();
$table->decimal('tm_total_days', 10, 2)->unsigned()->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('timesheet_master', function (Blueprint $table) {
//
});
}
}
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