2020-04-10 20:32:12 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
2020-04-12 00:26:44 +02:00
|
|
|
class CreateGroupsTable extends Migration
|
2020-04-10 20:32:12 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
2020-04-12 00:26:44 +02:00
|
|
|
Schema::create('groups', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
|
|
|
$table->string('name');
|
|
|
|
$table->string('nami_id')->nullable();
|
2020-04-10 20:32:12 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
2020-04-12 00:26:44 +02:00
|
|
|
Schema::dropIfExists('groups');
|
2020-04-10 20:32:12 +02:00
|
|
|
}
|
|
|
|
}
|