Skip to content

Commit fbdcf93

Browse files
committed
Add fix
1 parent 8d22082 commit fbdcf93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Database/MigrationRunner.php

Lines changed: 2 additions & 1 deletion
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)