@@ -6,14 +6,14 @@ |
||
6 | 6 | { |
7 | 7 | public function up() |
8 | 8 | { |
9 | - $this->table($this->roles, function (Blueprint $table) { |
|
9 | + $this->table($this->roles, function(Blueprint $table) { |
|
10 | 10 | $table->boolean('is_root')->default(false)->after('name'); |
11 | 11 | }); |
12 | 12 | } |
13 | 13 | |
14 | 14 | public function down() |
15 | 15 | { |
16 | - $this->table($this->roles, function (Blueprint $table) { |
|
16 | + $this->table($this->roles, function(Blueprint $table) { |
|
17 | 17 | $table->dropColumn('is_root'); |
18 | 18 | }); |
19 | 19 | } |
@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | protected function dropTimestamps(string $table) |
20 | 20 | { |
21 | - $this->table($table, function (Blueprint $table) { |
|
21 | + $this->table($table, function(Blueprint $table) { |
|
22 | 22 | $table->dropTimestamps(); |
23 | 23 | }); |
24 | 24 | } |
25 | 25 | |
26 | 26 | protected function createTimestamps(string $table) |
27 | 27 | { |
28 | - $this->table($table, function (Blueprint $table) { |
|
28 | + $this->table($table, function(Blueprint $table) { |
|
29 | 29 | $table->timestamps(); |
30 | 30 | }); |
31 | 31 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function optimizeIndexes(string $table, string $first_key, string $second_key) |
20 | 20 | { |
21 | - $this->table($table, function (Blueprint $table) use ($first_key, $second_key) { |
|
21 | + $this->table($table, function(Blueprint $table) use ($first_key, $second_key) { |
|
22 | 22 | $table->dropPrimary([$first_key, $second_key]); |
23 | 23 | |
24 | 24 | $table->index($first_key); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | protected function revertIndexes(string $table, string $first_key, string $second_key) |
29 | 29 | { |
30 | - $this->table($table, function (Blueprint $table) use ($first_key, $second_key) { |
|
30 | + $this->table($table, function(Blueprint $table) use ($first_key, $second_key) { |
|
31 | 31 | $table->dropIndex($first_key); |
32 | 32 | |
33 | 33 | $table->primary([$first_key, $second_key]); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | protected function createTable(string $table) |
26 | 26 | { |
27 | - $this->create($table, function (Blueprint $table) { |
|
27 | + $this->create($table, function(Blueprint $table) { |
|
28 | 28 | $table->bigIncrements('id'); |
29 | 29 | $table->string('name')->unique(); |
30 | 30 | $table->timestamps(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | protected function createPivot(string $table, string $first_table, string $second_table, string $first_key, string $second_key) |
35 | 35 | { |
36 | - $this->create($table, function (Blueprint $table) use ($first_table, $second_table, $first_key, $second_key) { |
|
36 | + $this->create($table, function(Blueprint $table) use ($first_table, $second_table, $first_key, $second_key) { |
|
37 | 37 | $table->unsignedBigInteger($first_key); |
38 | 38 | $table->unsignedBigInteger($second_key); |
39 | 39 |