review/database/migrations/2020_03_04_002130_create_constellations_table.php

41 lines
1014 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateConstellationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('constellations', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 11);
$table->unsignedTinyInteger('all');
$table->text('all_desc');
$table->unsignedTinyInteger('love');
$table->text('love_desc');
$table->unsignedTinyInteger('career');
$table->text('career_desc');
$table->unsignedTinyInteger('income');
$table->text('income_desc');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('constellations');
}
}