2017-02-17 08:57:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreatePermissionsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('permissions', function ($table) {
|
|
|
|
$table->increments('id');
|
|
|
|
$table->string('section');
|
|
|
|
$table->string('description');
|
|
|
|
$table->boolean('is_default');
|
2017-03-21 21:48:55 +00:00
|
|
|
$table->integer('sort_order');
|
2017-02-17 08:57:05 +00:00
|
|
|
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('permissions');
|
|
|
|
}
|
|
|
|
}
|