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.

42 lines
1.1 KiB

3 years ago
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateHopsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('hops', function (Blueprint $table) {
  15. $table->integer('id')->primary('hops_pkey');
  16. $table->text('name');
  17. $table->char('alpha_acid', 9);
  18. $table->boolean('bitter')->nullable();
  19. $table->boolean('aroma')->nullable();
  20. $table->text('profile')->nullable();
  21. $table->char('beta_acid', 9)->nullable();
  22. $table->char('myrcene', 9)->nullable();
  23. $table->char('humulene', 9)->nullable();
  24. $table->char('total_oil', 9)->nullable();
  25. $table->char('cohumulone', 9)->nullable();
  26. $table->char('farnesene', 9)->nullable();
  27. $table->char('caryophyllene', 9)->nullable();
  28. });
  29. }
  30. /**
  31. * Reverse the migrations.
  32. *
  33. * @return void
  34. */
  35. public function down()
  36. {
  37. Schema::dropIfExists('hops');
  38. }
  39. }