mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-03-29 15:54:15 +00:00
fix: updated drizzle config to match new config.json structure
Some checks failed
Commitlint / Run commitlint scanning (push) Has been cancelled
Some checks failed
Commitlint / Run commitlint scanning (push) Has been cancelled
This commit is contained in:
parent
6df3cffeee
commit
30cc0e9a8d
1 changed files with 2 additions and 2 deletions
|
@ -2,13 +2,13 @@ import fs from 'node:fs';
|
|||
import { defineConfig } from 'drizzle-kit';
|
||||
|
||||
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
|
||||
const { dbConnectionString } = config;
|
||||
const { database } = config;
|
||||
|
||||
export default defineConfig({
|
||||
out: './drizzle',
|
||||
schema: './src/db/schema.ts',
|
||||
dialect: 'postgresql',
|
||||
dbCredentials: {
|
||||
url: dbConnectionString,
|
||||
url: database.dbConnectionString,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue