adrema/database/migrations/2017_07_05_001729_create_co...

34 lines
698 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateConfessionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('confessions', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->integer('nami_id')->nullable();
$table->boolean('is_null');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('confessions');
}
}