madbob/GASdottoNG

View on GitHub
code/database/migrations/2020_04_28_011017_create_modifier_types_table.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateModifierTypesTable extends Migration
{
    public function up()
    {
        Schema::create('modifier_types', function (Blueprint $table) {
            $table->string('id')->primary();
            $table->timestamps();

            $table->string('name');
            $table->boolean('system')->default(false);
            $table->boolean('active')->default(true);
            $table->text('classes');
            $table->boolean('hidden')->default(false);
        });
    }

    public function down()
    {
        Schema::dropIfExists('modifier_types');
    }
}