Skip to content

Commit

Permalink
Update database config
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig committed Mar 28, 2024
1 parent 25831fa commit 1b2972b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- **BREAKING**: Database host maintenance feature.

### Changed
- **BREAKING**: Update database config.

## [0.25.0] - 2024-02-05

### Added
Expand Down
10 changes: 8 additions & 2 deletions src/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,19 @@

'default' => [
'driver' => env('DB_DRIVER', 'mysql'),
'url' => env('DB_URL'),
'host' => explode(',', env('DB_HOST', '127.0.0.1')),
'port' => env('DB_PORT', '3306'),
'database' => sqlite_database_path(env('DB_DATABASE'), env('DB_DRIVER')),
'username' => env('DB_USERNAME', 'username'),
'password' => env('DB_PASSWORD', 'password'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
Expand Down

0 comments on commit 1b2972b

Please sign in to comment.