mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor(database): ♻️ Move Note <-> Media relations to a many-to-many model instead of one-to-many
This commit is contained in:
parent
9c30dacda7
commit
3216fc339a
7 changed files with 2428 additions and 31 deletions
|
|
@ -1,21 +1,20 @@
|
|||
import type { Config } from "drizzle-kit";
|
||||
import { config } from "~/packages/config-manager/index.ts";
|
||||
|
||||
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