fix: cannot install without prefix (#4001)

This commit is contained in:
Daniël Klabbers 2024-09-20 09:31:34 +02:00 committed by GitHub
parent e1a77fd7c8
commit d3144ee234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ class Migrator
$statement = str_replace(
'db_prefix_',
$this->connection->getTablePrefix(),
$this->connection->getTablePrefix() ?? '',
$statement
);
$this->connection->statement($statement);

View File

@ -21,7 +21,7 @@ class DatabaseConfig implements Arrayable
private string $database,
private readonly ?string $username,
private readonly ?string $password,
private readonly string $prefix
private readonly ?string $prefix
) {
$this->validate();
}