mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Update database.js
This commit is contained in:
parent
f44e9080e5
commit
8a827582c6
@ -42,18 +42,22 @@ module.exports = (log) => {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
database = `mysql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`;
|
database = `mysql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`;
|
||||||
|
log.info('Using MySQL as database backend');
|
||||||
break;
|
break;
|
||||||
case 'mongo':
|
case 'mongo':
|
||||||
case 'mongodb':
|
case 'mongodb':
|
||||||
database = `mongodb://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`;
|
database = `mongodb://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`;
|
||||||
|
log.info('Using MongoDB as database backend');
|
||||||
break;
|
break;
|
||||||
case 'postgre':
|
case 'postgre':
|
||||||
case 'postgres':
|
case 'postgres':
|
||||||
case 'postgresql':
|
case 'postgresql':
|
||||||
database = `postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`;
|
database = `postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}`;
|
||||||
|
log.info('Using Postgres as database backend');
|
||||||
break;
|
break;
|
||||||
default: // sqlite
|
default: // sqlite
|
||||||
database = `sqlite://${path('./user/database.sqlite')}`;
|
database = `sqlite://${path('./user/database.sqlite')}`;
|
||||||
|
log.info('Using SQLite as database backend');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user