Commit 42cbd031 by hannan

delete migration project task

parent 926b586a
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProjectTaskTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('project_task', function (Blueprint $table) {
$table->increments('id');
$table->integer('pt_project_code')->unsigned()->nullable();
$table->string('pt_project_description',50)->nullable();
$table->string('pt_project_task_team',50)->nullable();
$table->integer('pt_project_sts')->unsigned()->nullable();
$table->timestamps();
$table->integer('updated_by')->nullable();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('project_task');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeDatatypePtProjectTaskTeamInProjectTask extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('project_task', function (Blueprint $table) {
$table->integer('pt_project_task_team')->unsigned()->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('project_task', function (Blueprint $table) {
//
});
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RenameTableProjectTask extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('project_task', function (Blueprint $table) {
Schema::rename('project_task', 'project_team');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('project_task', function (Blueprint $table) {
//
});
}
}
...@@ -342,11 +342,11 @@ class DashboardController extends Controller ...@@ -342,11 +342,11 @@ class DashboardController extends Controller
// ->where('td_date', $date) // ->where('td_date', $date)
->where('tm_phase', $request->phase) ->where('tm_phase', $request->phase)
->sum('td_hours'); ->sum('td_hours');
dd($sumdetailhour); // dd($sumdetailhour);
$checktotalhours = Ts_master::where('id', $tmasterid) $checktotalhours = Ts_master::where('id', $tmasterid)->first();
->where('tm_chargeable_hrs', $sumdetailhour) $checktotalhours->where('tm_chargeable_hrs', $sumdetailhour);
->update(); $checktotalhours->update();
// return redirect::to('mobile/profile'); // return redirect::to('mobile/profile');
......
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