Fix migration directory path resolution in MigrationRunner

This commit is contained in:
Vladimir Mirivlad 2026-02-06 15:26:06 +00:00
parent b5a0f36603
commit 2be3e69c99
1 changed files with 2 additions and 1 deletions

View File

@ -12,8 +12,9 @@ class MigrationRunner
public function __construct(PDO $pdo, string $migrationsDir = '../migrations/')
{
// Преобразуем относительный путь к абсолютному
$this->migrationsDir = __DIR__ . '/' . $migrationsDir;
$this->pdo = $pdo;
$this->migrationsDir = $migrationsDir;
}
/**