Skip to content

Commit 8ec1c53

Browse files
committed
Add Db
1 parent d08edbc commit 8ec1c53

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

config/db.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
return [
44
'class' => 'yii\db\Connection',
5-
'dsn' => 'mysql:host=localhost;dbname=yii2basic',
6-
'username' => 'root',
7-
'password' => '',
5+
'dsn' => 'sqlite:@app/db/database.sqlite',
86
'charset' => 'utf8',
97

10-
// Schema cache options (for production environment)
11-
//'enableSchemaCache' => true,
12-
//'schemaCacheDuration' => 60,
13-
//'schemaCache' => 'cache',
148
];

db/database.sqlite

Whitespace-only changes.

0 commit comments

Comments
 (0)