You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema;
class CreateStatusesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('statuses', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('business_id'); $table->unsignedBigInteger('workflow_id'); $table->string('name'); $table->string('state')->default(enum('status.states.inactive.id')); $table->unsignedSmallInteger('order')->default(0); $table->timestamp('created_at')->nullable(); $table->timestamp('updated_at')->useCurrent(); });
}
/** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('statuses'); // Schema::dropIfExists('status_workflow');
} }
|