diff options
author | thursday <xthursdayx@mailbox.org> | 2021-07-12 19:00:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 19:00:00 -0400 |
commit | 68b5c7a287afde31880436b8ea496fa70202fa6d (patch) | |
tree | d91969ccd7fa6b3411f1fe83f7d5d90e3d264fad /config | |
parent | Changed default dbname to ferdi in .env.example (diff) | |
download | ferdium-server-68b5c7a287afde31880436b8ea496fa70202fa6d.tar.gz ferdium-server-68b5c7a287afde31880436b8ea496fa70202fa6d.tar.zst ferdium-server-68b5c7a287afde31880436b8ea496fa70202fa6d.zip |
Update database.js
Updated the path.join function for the default sqlite database and updated all default database names to `ferdi` rather than `adonis`
Diffstat (limited to 'config')
-rw-r--r-- | config/database.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/database.js b/config/database.js index f6ede13..e5e3ec8 100644 --- a/config/database.js +++ b/config/database.js | |||
@@ -31,7 +31,7 @@ module.exports = { | |||
31 | sqlite: { | 31 | sqlite: { |
32 | client: 'sqlite3', | 32 | client: 'sqlite3', |
33 | connection: { | 33 | connection: { |
34 | filename: `${Env.get('DATA_DIR', 'data')}/${Env.get('DB_DATABASE', 'database')}.sqlite`, | 34 | filename: path.join(Env.get('DATA_DIR', 'data'), `${Env.get('DB_DATABASE', 'ferdi')}.sqlite`), |
35 | }, | 35 | }, |
36 | useNullAsDefault: true, | 36 | useNullAsDefault: true, |
37 | debug: Env.get('DB_DEBUG', false), | 37 | debug: Env.get('DB_DEBUG', false), |
@@ -54,7 +54,7 @@ module.exports = { | |||
54 | port: Env.get('DB_PORT', ''), | 54 | port: Env.get('DB_PORT', ''), |
55 | user: Env.get('DB_USER', 'root'), | 55 | user: Env.get('DB_USER', 'root'), |
56 | password: Env.get('DB_PASSWORD', ''), | 56 | password: Env.get('DB_PASSWORD', ''), |
57 | database: Env.get('DB_DATABASE', 'adonis'), | 57 | database: Env.get('DB_DATABASE', 'ferdi'), |
58 | }, | 58 | }, |
59 | debug: Env.get('DB_DEBUG', false), | 59 | debug: Env.get('DB_DEBUG', false), |
60 | }, | 60 | }, |
@@ -76,7 +76,7 @@ module.exports = { | |||
76 | port: Env.get('DB_PORT', ''), | 76 | port: Env.get('DB_PORT', ''), |
77 | user: Env.get('DB_USER', 'root'), | 77 | user: Env.get('DB_USER', 'root'), |
78 | password: Env.get('DB_PASSWORD', ''), | 78 | password: Env.get('DB_PASSWORD', ''), |
79 | database: Env.get('DB_DATABASE', 'adonis'), | 79 | database: Env.get('DB_DATABASE', 'ferdi'), |
80 | ssl: JSON.parse(Env.get('DB_SSL', 'true')), | 80 | ssl: JSON.parse(Env.get('DB_SSL', 'true')), |
81 | }, | 81 | }, |
82 | debug: Env.get('DB_DEBUG', false), | 82 | debug: Env.get('DB_DEBUG', false), |