summaryrefslogtreecommitdiff
path: root/config/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/database.php')
-rw-r--r--config/database.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/database.php b/config/database.php
index b42d9b3..e880c5c 100644
--- a/config/database.php
+++ b/config/database.php
@@ -91,6 +91,26 @@ return [
'prefix_indexes' => true,
],
+ 'cinema' => [
+ 'driver' => 'mysql',
+ 'url' => env('DATABASE_URL'),
+ 'host' => env('DB_HOST', '127.0.0.1'),
+ 'port' => env('DB_PORT', '3306'),
+ 'database' => env('DB_CINEMA_DATABASE', 'hncrawler'),
+ 'username' => env('DB_CINEMA_USERNAME', 'hncrawler_ro'),
+ 'password' => env('DB_CINEMA_PASSWORD', ''),
+ 'unix_socket' => env('DB_SOCKET', ''),
+ 'charset' => 'utf8mb4',
+ 'collation' => 'utf8mb4_unicode_ci',
+ 'prefix' => '',
+ 'prefix_indexes' => true,
+ 'strict' => true,
+ 'engine' => null,
+ 'options' => extension_loaded('pdo_mysql') ? array_filter([
+ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
+ ]) : [],
+ ],
+
],
/*