mirror of
https://github.com/flarum/framework.git
synced 2025-03-12 05:15:31 +08:00
Set the default engine in the installer
The installer doesn't use DatabaseServiceProvider, so we need to set the default engine in the config here too. Fixes #1675
This commit is contained in:
parent
d9d7027ed0
commit
6370f7ecff
@ -239,6 +239,8 @@ class InstallCommand extends AbstractCommand
|
|||||||
|
|
||||||
$factory = new ConnectionFactory($this->application);
|
$factory = new ConnectionFactory($this->application);
|
||||||
|
|
||||||
|
$laravelDbConfig['engine'] = 'InnoDB';
|
||||||
|
|
||||||
$this->db = $factory->make($laravelDbConfig);
|
$this->db = $factory->make($laravelDbConfig);
|
||||||
$version = $this->db->getPdo()->getAttribute(PDO::ATTR_SERVER_VERSION);
|
$version = $this->db->getPdo()->getAttribute(PDO::ATTR_SERVER_VERSION);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user