Undo path change

This commit is contained in:
Moriz Wahl 2021-12-29 12:53:00 +01:00
parent b6c66dd2da
commit dc3f86f0c6
2 changed files with 1 additions and 3 deletions

View File

@ -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 }

View File

@ -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,