mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 02:23:00 +08:00
fix: cannot install without prefix (#4001)
This commit is contained in:
parent
e1a77fd7c8
commit
d3144ee234
|
@ -252,7 +252,7 @@ class Migrator
|
|||
|
||||
$statement = str_replace(
|
||||
'db_prefix_',
|
||||
$this->connection->getTablePrefix(),
|
||||
$this->connection->getTablePrefix() ?? '',
|
||||
$statement
|
||||
);
|
||||
$this->connection->statement($statement);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user