1
0
mirror of https://github.com/flarum/core.git synced 2025-02-22 10:13:48 +01:00
php-flarum/migrations/2015_02_24_000000_create_groups_table.php
2015-05-06 11:25:19 +09:30

34 lines
693 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('groups', function (Blueprint $table) {
$table->increments('id');
$table->string('name_singular');
$table->string('name_plural');
$table->string('color')->nullable();
$table->string('icon')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('groups');
}
}