Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CreateSwivelTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | 3 | public function up() |
|
15 | { |
||
16 | \Schema::create('swivel_features', function (Blueprint $table) { |
||
17 | 3 | $table->integer('id', true, true); |
|
18 | 3 | $table->string('slug')->unique(); |
|
19 | 3 | $table->string('buckets', 20)->default(''); |
|
20 | 3 | $table->timestamps(); |
|
21 | |||
22 | // key section |
||
23 | 3 | }); |
|
24 | 3 | } |
|
25 | |||
26 | /** |
||
27 | * Reverse the migrations. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | 3 | public function down() |
|
34 | 3 | } |
|
35 | } |
||
36 |