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
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							42 lines
						
					
					
						
							1.1 KiB
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								use Illuminate\Database\Migrations\Migration;
							 | 
						|
								use Illuminate\Database\Schema\Blueprint;
							 | 
						|
								use Illuminate\Support\Facades\Schema;
							 | 
						|
								
							 | 
						|
								class CreateHopsTable extends Migration
							 | 
						|
								{
							 | 
						|
								    /**
							 | 
						|
								     * Run the migrations.
							 | 
						|
								     *
							 | 
						|
								     * @return void
							 | 
						|
								     */
							 | 
						|
								    public function up()
							 | 
						|
								    {
							 | 
						|
								        Schema::create('hops', function (Blueprint $table) {
							 | 
						|
								            $table->integer('id')->primary('hops_pkey');
							 | 
						|
								            $table->text('name');
							 | 
						|
								            $table->char('alpha_acid', 9);
							 | 
						|
								            $table->boolean('bitter')->nullable();
							 | 
						|
								            $table->boolean('aroma')->nullable();
							 | 
						|
								            $table->text('profile')->nullable();
							 | 
						|
								            $table->char('beta_acid', 9)->nullable();
							 | 
						|
								            $table->char('myrcene', 9)->nullable();
							 | 
						|
								            $table->char('humulene', 9)->nullable();
							 | 
						|
								            $table->char('total_oil', 9)->nullable();
							 | 
						|
								            $table->char('cohumulone', 9)->nullable();
							 | 
						|
								            $table->char('farnesene', 9)->nullable();
							 | 
						|
								            $table->char('caryophyllene', 9)->nullable();
							 | 
						|
								        });
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    /**
							 | 
						|
								     * Reverse the migrations.
							 | 
						|
								     *
							 | 
						|
								     * @return void
							 | 
						|
								     */
							 | 
						|
								    public function down()
							 | 
						|
								    {
							 | 
						|
								        Schema::dropIfExists('hops');
							 | 
						|
								    }
							 | 
						|
								}
							 |