This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/database/pending/2015_02_07_172606_create_roles_table.php

36 lines
686 B
PHP
Raw Normal View History

2016-10-13 04:56:01 +00:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRolesTable extends Migration
2016-10-13 04:56:01 +00:00
{
2016-10-13 04:56:01 +00:00
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('roles', function (Blueprint $table) {
2016-10-13 04:56:01 +00:00
$table->increments('id');
$table->string('name')->unique();
$table->string('slug')->unique();
$table->text('description')->nullable();
2016-10-13 04:56:01 +00:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('roles');
2016-10-13 04:56:01 +00:00
}
2016-10-13 04:56:01 +00:00
}