Skip to content

Commit dac028f

Browse files
committed
Add fix
1 parent a2b1ce2 commit dac028f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Database/MigrationRunner.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ protected function migrate($direction, $migration): bool
839839
throw new RuntimeException($message);
840840
}
841841

842-
$instance = new $class();
842+
/** @var Migration $instance */
843+
$instance = new $class(Database::forge($this->db));
843844
$group = $instance->getDBGroup() ?? config(Database::class)->defaultGroup;
844845

845846
if (ENVIRONMENT !== 'testing' && $group === 'tests' && $this->groupFilter !== 'tests') {

0 commit comments

Comments
 (0)