My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.0 KiB

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBeerSummaryTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('beer_summary', function (Blueprint $table) {
$table->decimal('abv', 3, 1);
$table->integer('beer_id')->primary('beer_summary_pkey');
$table->decimal('fg', 4, 3);
$table->text('keywords');
$table->boolean('mine')->default(0);
$table->text('name');
$table->decimal('og', 4, 3);
$table->text('source');
$table->text('type');
$table->text('notes')->nullable();
$table->integer('brewery_id');
$table->integer('batch')->default(20);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('beer_summary');
}
}