Commit 19fc6702 by hannan

migration project mandays

parent 642d81d1
...@@ -15,7 +15,7 @@ class CreateProjectMandaysTable extends Migration ...@@ -15,7 +15,7 @@ class CreateProjectMandaysTable extends Migration
{ {
Schema::create('project_mandays', function (Blueprint $table) { Schema::create('project_mandays', function (Blueprint $table) {
$table->increments('id'); $table->increments('id');
$table->integer('fk_project_team')->unsigned()->nullable(); $table->integer('fk_project')->unsigned()->nullable();
$table->integer('pm_roles')->unsigned()->nullable(); $table->integer('pm_roles')->unsigned()->nullable();
$table->double('pm_days', 10, 2)->unsigned()->nullable(); $table->double('pm_days', 10, 2)->unsigned()->nullable();
$table->double('pm_hours', 10, 2)->unsigned()->nullable(); $table->double('pm_hours', 10, 2)->unsigned()->nullable();
......
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RenameColumnInProjectMandays extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('project_mandays', function (Blueprint $table) {
$table->renameColumn('fk_project_team', 'fk_project');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('project_mandays', function (Blueprint $table) {
$table->renameColumn('fk_project', 'fk_project_team');
});
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RenameColumnInProjectMandays extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('project_mandayscd', function (Blueprint $table) {
//
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('project_mandayscd', 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