summary refs log tree commit diff
path: root/util
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
commite042db33b6ee7aba69275d6f5e7cb901bcc0758d (patch)
treebc2dcfac2c0686488acef074a5436bf59322e69d /util
parentAdd Sentry, fix compile errors (diff)
downloadserver-e042db33b6ee7aba69275d6f5e7cb901bcc0758d.tar.xz
Replace nanocolors with picocolors
Diffstat (limited to 'util')
-rw-r--r--util/package.json2
-rw-r--r--util/src/util/Database.ts5
2 files changed, 5 insertions, 2 deletions
diff --git a/util/package.json b/util/package.json

index e93eeab4..aef5dcfc 100644 --- a/util/package.json +++ b/util/package.json
@@ -44,10 +44,10 @@ "lambert-server": "^1.2.12", "missing-native-js-functions": "^1.2.18", "multer": "^1.4.3", - "nanocolors": "^0.2.12", "node-fetch": "^2.6.1", "patch-package": "^6.4.7", "pg": "^8.7.1", + "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", "reflect-metadata": "^0.1.13", "typeorm": "^0.2.38", 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,