-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_sqlite.php
More file actions
35 lines (34 loc) · 1.13 KB
/
Copy pathapp_sqlite.php
File metadata and controls
35 lines (34 loc) · 1.13 KB
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
use function Cake\Core\env;
return [
'Datasources' => [
'default' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Sqlite',
'persistent' => false,
'username' => 'my_app',
'password' => 'secret',
'database' => ROOT . DS . 'database.sqlite',
'encoding' => 'utf8mb4',
'timezone' => 'UTC',
'cacheMetadata' => true,
'quoteIdentifiers' => false,
'log' => false,
'url' => env('DATABASE_URL', null),
],
'test' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Sqlite',
'persistent' => false,
'username' => 'my_app',
'password' => 'secret',
'database' => ROOT . DS . 'tmp' . DS . 'tests.sqlite',
'encoding' => 'utf8mb4',
'timezone' => 'UTC',
'cacheMetadata' => true,
'quoteIdentifiers' => false,
'log' => false,
'url' => env('DATABASE_TEST_URL', null),
],
],
];