2014_10_11_000000_create_aksesgrups_table.php
719 Bytes
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAksesgrupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('aksesgrups', function (Blueprint $table) {
$table->id();
$table->string('nama');
$table->string('alias')->nullable()->unique();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('aksesgrups');
}
}