mirror of
https://github.com/flarum/framework.git
synced 2025-03-04 06:14:26 +08:00
chore(testing): use sqlite by default
This commit is contained in:
parent
570580dcf0
commit
c835bdb59a
@ -38,7 +38,7 @@ class SetupScript
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->driver = getenv('DB_DRIVER') ?: 'mysql';
|
$this->driver = getenv('DB_DRIVER') ?: 'sqlite';
|
||||||
$this->host = getenv('DB_HOST') ?: 'localhost';
|
$this->host = getenv('DB_HOST') ?: 'localhost';
|
||||||
$this->port = intval(getenv('DB_PORT') ?: match ($this->driver) {
|
$this->port = intval(getenv('DB_PORT') ?: match ($this->driver) {
|
||||||
'mysql', 'mariadb' => 3306,
|
'mysql', 'mariadb' => 3306,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user