clrghouz/database/migrations/2019_04_16_105255_create_flags.php
2019-04-26 14:30:00 +10:00

35 lines
601 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFlags extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::dropIfExists('flags');
Schema::create('flags', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('flag')->unique();
$table->string('description');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('flags');
}
}