summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-12-25 11:09:48 +0000
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-12-25 12:09:48 +0100
commit9909e5a174cdbb79224b64ccbee8111ad1ee440e (patch)
tree79312cc6427cce6510076113de0b686a5351f7f7 /util/src
parentAdd Sentry, fix compile errors (diff)
downloadserver-9909e5a174cdbb79224b64ccbee8111ad1ee440e.tar.xz
Replace nanocolors with picocolors
Diffstat (limited to 'util/src')
-rw-r--r--util/src/util/Database.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/src/util/Database.ts b/util/src/util/Database.ts
index 6124ffab..e8177093 100644
--- a/util/src/util/Database.ts
+++ b/util/src/util/Database.ts
@@ -3,7 +3,7 @@ import "reflect-metadata";
 import { Connection, createConnection } from "typeorm";
 import * as Models from "../entities";
 import { Migration } from "../entities/Migration";
-import { yellow, green } from "nanocolors";
+import { yellow, green, red } from "picocolors";
 
 // UUID extension option is only supported with postgres
 // We want to generate all id's with Snowflakes that's why we have our own BaseEntity class
@@ -19,6 +19,9 @@ export function initDatabase(): Promise<Connection> {
 	const isSqlite = type.includes("sqlite");
 
 	console.log(`[Database] ${yellow(`connecting to ${type} db`)}`);
+	if(isSqlite) {
+		console.log(`[Database] ${red(`You are running sqlite! Please keep in mind that we recommend setting up a dedicated database!`)}`);
+	}
 	// @ts-ignore
 	promise = createConnection({
 		type,