From dc3f86f0c6f9989903d693c7a24f62731d402104 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 29 Dec 2021 12:53:00 +0100 Subject: [PATCH] Undo path change --- database/src/config/index.ts | 2 +- database/src/helpers.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/database/src/config/index.ts b/database/src/config/index.ts index 98fae114f..908d40311 100644 --- a/database/src/config/index.ts +++ b/database/src/config/index.ts @@ -13,7 +13,7 @@ const database = { const migrations = { MIGRATIONS_TABLE: process.env.MIGRATIONS_TABLE || 'migrations', - MIGRATIONS_DIRECTORY: process.env.MIGRATIONS_DIRECTORY || '../database/migrations/', + MIGRATIONS_DIRECTORY: process.env.MIGRATIONS_DIRECTORY || './migrations/', } const CONFIG = { ...database, ...migrations } diff --git a/database/src/helpers.ts b/database/src/helpers.ts index 821d1e5c4..199af5f7f 100644 --- a/database/src/helpers.ts +++ b/database/src/helpers.ts @@ -2,8 +2,6 @@ import CONFIG from './config' import { createPool, PoolConfig } from 'mysql' import { Migration } from 'ts-mysql-migrate' -console.log(__dirname) - const poolConfig: PoolConfig = { host: CONFIG.DB_HOST, port: CONFIG.DB_PORT,