mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
try with path.join
This commit is contained in:
parent
dc3f86f0c6
commit
0cd6a40304
@ -1,6 +1,7 @@
|
||||
import CONFIG from './config'
|
||||
import { createPool, PoolConfig } from 'mysql'
|
||||
import { Migration } from 'ts-mysql-migrate'
|
||||
import path from 'path'
|
||||
|
||||
const poolConfig: PoolConfig = {
|
||||
host: CONFIG.DB_HOST,
|
||||
@ -18,7 +19,7 @@ const migration = new Migration({
|
||||
conn: pool,
|
||||
tableName: CONFIG.MIGRATIONS_TABLE,
|
||||
silent: true,
|
||||
dir: CONFIG.MIGRATIONS_DIRECTORY,
|
||||
dir: path.join(__dirname, '..', CONFIG.MIGRATIONS_DIRECTORY),
|
||||
})
|
||||
|
||||
const initialize = async (): Promise<void> => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user