We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4a5a5 commit d27d94eCopy full SHA for d27d94e
src/Illuminate/Database/Migrations/Migrator.php
@@ -349,7 +349,9 @@ protected function runMigration($migration, $method)
349
);
350
351
$callback = function () use ($migration, $method) {
352
- $migration->{$method}();
+ if (method_exists($migration, $method)) {
353
+ $migration->{$method}();
354
+ }
355
};
356
357
$this->getSchemaGrammar($connection)->supportsSchemaTransactions()
@@ -390,7 +392,9 @@ protected function getQueries($migration, $method)
390
392
391
393
394
return $db->pretend(function () use ($migration, $method) {
- $migration->$method();
395
396
397
398
});
399
}
400
0 commit comments