mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor(database): ♻️ Make emojis use a Media instead of just rawdogging the URI
This commit is contained in:
parent
c7aae24d42
commit
cf1104d762
18 changed files with 4823 additions and 128 deletions
|
|
@ -1,20 +1,25 @@
|
|||
import type { Config } from "drizzle-kit";
|
||||
import { config } from "./packages/config-manager/index.ts";
|
||||
|
||||
/**
|
||||
* Drizzle can't properly resolve imports with top-level await, so uncomment
|
||||
* this line when generating migrations.
|
||||
*/
|
||||
export default {
|
||||
dialect: "postgresql",
|
||||
out: "./drizzle/migrations",
|
||||
schema: "./drizzle/schema.ts",
|
||||
dbCredentials: {
|
||||
host: "localhost",
|
||||
/* host: "localhost",
|
||||
port: 40000,
|
||||
user: "lysand",
|
||||
password: "lysand",
|
||||
database: "lysand",
|
||||
/* host: config.database.host,
|
||||
database: "lysand", */
|
||||
host: config.database.host,
|
||||
port: Number(config.database.port),
|
||||
user: config.database.username,
|
||||
password: config.database.password,
|
||||
database: config.database.database, */
|
||||
database: config.database.database,
|
||||
},
|
||||
// Print all statements
|
||||
verbose: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue