|
@@ -19,7 +19,7 @@ discard block |
|
|
block discarded – undo |
|
19
|
19
|
|
|
20
|
20
|
protected function optimizeIndexes(string $table, string $first_key, string $second_key) |
|
21
|
21
|
{ |
|
22
|
|
- $this->table($table, function (Blueprint $table) use ($first_key, $second_key) { |
|
|
22
|
+ $this->table($table, function(Blueprint $table) use ($first_key, $second_key) { |
|
23
|
23
|
$table->dropPrimary([$first_key, $second_key]); |
|
24
|
24
|
|
|
25
|
25
|
$table->index($first_key); |
|
@@ -28,7 +28,7 @@ discard block |
|
|
block discarded – undo |
|
28
|
28
|
|
|
29
|
29
|
protected function revertIndexes(string $table, string $first_key, string $second_key) |
|
30
|
30
|
{ |
|
31
|
|
- $this->table($table, function (Blueprint $table) use ($first_key, $second_key) { |
|
|
31
|
+ $this->table($table, function(Blueprint $table) use ($first_key, $second_key) { |
|
32
|
32
|
$table->dropIndex([$first_key]); |
|
33
|
33
|
|
|
34
|
34
|
$table->primary([$first_key, $second_key]); |
Please login to merge, or discard this patch.