@@ -177,11 +177,11 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | $tableIndexes = $this->getTableIndexes($value['table_name']); |
| 179 | 179 | if (!is_null($tableIndexes) && count($tableIndexes)){ |
| 180 | - foreach ($tableIndexes as $index) { |
|
| 180 | + foreach ($tableIndexes as $index) { |
|
| 181 | 181 | if(Str::endsWith($index['Key_name'], '_index')) |
| 182 | - $up .= ' $' . "table->index('" . $index['Key_name'] . "');\n"; |
|
| 182 | + $up .= ' $' . "table->index('" . $index['Key_name'] . "');\n"; |
|
| 183 | 183 | } |
| 184 | - } |
|
| 184 | + } |
|
| 185 | 185 | |
| 186 | 186 | $up .= " });\n\n"; |
| 187 | 187 | $Constraint = $ConstraintDown = ""; |
@@ -225,24 +225,24 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | // prevent of failure when no table |
| 227 | 227 | if (!is_null($this->schema) && count($this->schema)) { |
| 228 | - foreach ($this->schema as $name => $values) { |
|
| 229 | - // check again for ignored tables |
|
| 230 | - if (in_array($name, self::$ignore)) { |
|
| 231 | - continue; |
|
| 232 | - } |
|
| 233 | - $upSchema .= " |
|
| 228 | + foreach ($this->schema as $name => $values) { |
|
| 229 | + // check again for ignored tables |
|
| 230 | + if (in_array($name, self::$ignore)) { |
|
| 231 | + continue; |
|
| 232 | + } |
|
| 233 | + $upSchema .= " |
|
| 234 | 234 | /** |
| 235 | 235 | * Table: {$name} |
| 236 | 236 | */ |
| 237 | 237 | {$values['up']}"; |
| 238 | 238 | $upConstraint.=" |
| 239 | 239 | {$values['constraint']}"; |
| 240 | - $downConstraint.=" |
|
| 240 | + $downConstraint.=" |
|
| 241 | 241 | {$values['constraint_down']}"; |
| 242 | 242 | |
| 243 | - $downSchema .= " |
|
| 243 | + $downSchema .= " |
|
| 244 | 244 | {$values['down']}"; |
| 245 | - } |
|
| 245 | + } |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | // Grab the template |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function register() |
| 31 | 31 | { |
| 32 | - $this->publishes([ |
|
| 32 | + $this->publishes([ |
|
| 33 | 33 | realpath(__DIR__ .'/../').'/config/db-exporter.php' => config_path('db-exporter.php'), |
| 34 | 34 | ]); |
| 35 | 35 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | realpath(__DIR__ .'/../').'/config/db-exporter.php', 'db-exporter' |
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - $this->app->register(DbMigrationsServiceProvider::class); |
|
| 40 | + $this->app->register(DbMigrationsServiceProvider::class); |
|
| 41 | 41 | |
| 42 | 42 | // Load the classes |
| 43 | 43 | $this->loadClasses(); |