From 9fee11c0b775630837f47bd3e8708f29709a723f Mon Sep 17 00:00:00 2001 From: tfkhdyt Date: Wed, 27 Sep 2023 07:57:09 +0700 Subject: [PATCH] fix(migrations): fix wrong migrationsFolder --- drizzle.config.js | 4 ---- src/main.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 drizzle.config.js diff --git a/drizzle.config.js b/drizzle.config.js deleted file mode 100644 index 967446f..0000000 --- a/drizzle.config.js +++ /dev/null @@ -1,4 +0,0 @@ -export default { - schema: './src/db/postgres/schemas/*', - out: './drizzle', -}; diff --git a/src/main.ts b/src/main.ts index 762cb3c..747f3fc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,7 +10,7 @@ import config from './config/config.js' import { db, migrationClient } from './db/postgres/index.js' import { users } from './db/postgres/schemas/user.schema.js' -await migrate(drizzle(migrationClient), { migrationsFolder: 'drizzle' }) +await migrate(drizzle(migrationClient), { migrationsFolder: '../drizzle' }) // class instantiation const app = new App(config.botToken)