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:
Toby Zerner 2018-12-04 09:12:19 +10:30
parent 93531c6636
commit 126551366b

View File

@ -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);