-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMySQL.php
More file actions
35 lines (29 loc) · 882 Bytes
/
MySQL.php
File metadata and controls
35 lines (29 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
namespace Tests\Configurations;
use DragonCode\MigrateDB\Constants\Drivers;
class MySQL extends BaseConfiguration
{
protected $config = [
'driver' => Drivers::MYSQL,
'url' => null,
'host' => '127.0.0.1',
'port' => '3306',
'database' => 'forge',
'username' => 'root',
'password' => 'root',
'unix_socket' => '',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => [],
];
protected function fill(): void
{
parent::fill();
$this->configuration->setHost(env('MYSQL_HOST', '127.0.0.1'));
}
}