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
749 B
34 lines
749 B
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateBeerHopsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('beer_hops', function (Blueprint $table) {
|
|
$table->integer('id')->primary('beers_hops_pkey');
|
|
$table->integer('beer_id');
|
|
$table->integer('hop_id');
|
|
$table->decimal('amount', 7);
|
|
$table->char('timing', 10);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('beer_hops');
|
|
}
|
|
}
|