mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
fix: cannot install without prefix (#4001)
This commit is contained in:
@@ -252,7 +252,7 @@ class Migrator
|
|||||||
|
|
||||||
$statement = str_replace(
|
$statement = str_replace(
|
||||||
'db_prefix_',
|
'db_prefix_',
|
||||||
$this->connection->getTablePrefix(),
|
$this->connection->getTablePrefix() ?? '',
|
||||||
$statement
|
$statement
|
||||||
);
|
);
|
||||||
$this->connection->statement($statement);
|
$this->connection->statement($statement);
|
||||||
|
@@ -21,7 +21,7 @@ class DatabaseConfig implements Arrayable
|
|||||||
private string $database,
|
private string $database,
|
||||||
private readonly ?string $username,
|
private readonly ?string $username,
|
||||||
private readonly ?string $password,
|
private readonly ?string $password,
|
||||||
private readonly string $prefix
|
private readonly ?string $prefix
|
||||||
) {
|
) {
|
||||||
$this->validate();
|
$this->validate();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user