1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

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
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();
}