mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 20:44:03 +00:00
8a28eb1790
This reverts merge request !5
39 lines
910 B
PHP
39 lines
910 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateStepsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('steps', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->integer('group_id')->unsigned()->index();
|
|
$table->string('reference_id');
|
|
$table->string('initial_name');
|
|
$table->string('final_name');
|
|
$table->text('description')->nullable();
|
|
$table->timestamps();
|
|
|
|
$table->foreign('group_id')->references('id')->on('group_steps');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('steps');
|
|
}
|
|
}
|