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.
34 lines
759 B
34 lines
759 B
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateBeerGrainsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('beer_grains', function (Blueprint $table) {
|
|
$table->integer('id')->primary('beers_grains_pkey');
|
|
$table->integer('beer_id');
|
|
$table->integer('grain_id');
|
|
$table->char('amount', 7);
|
|
$table->char('grain_bill', 4);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('beer_grains');
|
|
}
|
|
}
|