This commit is contained in:
Ulf Gebhardt 2023-03-10 00:24:00 +01:00
parent 6a7dac0cc6
commit 331a4e1205
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -2,7 +2,7 @@ import 'reflect-metadata'
import { createDatabase } from './prepare'
import CONFIG from './config'
import { createPool, Pool } from 'mysql'
import { createPool } from 'mysql'
import { Migration } from 'ts-mysql-migrate'
import path from 'path'
@ -10,6 +10,7 @@ const run = async (command: string) => {
// Database actions not supported by our migration library
await createDatabase()
// Initialize Migrations
const pool = createPool({
host: CONFIG.DB_HOST,
port: CONFIG.DB_PORT,