mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
Replace nanocolors with picocolors
This commit is contained in:
1 parent
a9a92ff2cb
commit
e042db33b6
10 files changed
+14
-11
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user