diff options
Diffstat (limited to 'database/migrations/2016_01_04_143655_create_roots_table.php')
| -rw-r--r-- | database/migrations/2016_01_04_143655_create_roots_table.php | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/database/migrations/2016_01_04_143655_create_roots_table.php b/database/migrations/2016_01_04_143655_create_roots_table.php new file mode 100644 index 0000000..1828bfd --- /dev/null +++ b/database/migrations/2016_01_04_143655_create_roots_table.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateRootsTable extends Migration +{ +    /** +     * Run the migrations. +     * +     * @return void +     */ +    public function up() +    { +        Schema::create('roots', function (Blueprint $table) { +            $table->increments('id'); +            $table->string('root', 24)->collate('utf8_general_ci')->unique(); +            $table->boolean('strong'); +            $table->timestamps(); +        }); +    } + +    /** +     * Reverse the migrations. +     * +     * @return void +     */ +    public function down() +    { +        Schema::drop('roots'); +    } +} | 
