fix: migration dirs
This commit is contained in:
1 parent
e764d8e465
commit
57a2de64b2
1 file changed
+2
-2
@@ -5,15 +5,15 @@ import Logger from "../loaders/logger"
|
|||||||
|
|
||||||
import getMigrations from "./utils/get-migrations"
|
import getMigrations from "./utils/get-migrations"
|
||||||
|
|
||||||
const t = async function({ port, directory }) {
|
const t = async function({ directory }) {
|
||||||
const args = process.argv
|
const args = process.argv
|
||||||
args.shift()
|
args.shift()
|
||||||
args.shift()
|
args.shift()
|
||||||
args.shift()
|
args.shift()
|
||||||
|
|
||||||
|
const { configModule } = getConfigFile(directory, `medusa-config`)
|
||||||
const migrationDirs = getMigrations(directory)
|
const migrationDirs = getMigrations(directory)
|
||||||
|
|
||||||
const { configModule } = getConfigFile(directory, `medusa-config`)
|
|
||||||
const connection = await createConnection({
|
const connection = await createConnection({
|
||||||
type: configModule.projectConfig.database_type,
|
type: configModule.projectConfig.database_type,
|
||||||
url: configModule.projectConfig.database_url,
|
url: configModule.projectConfig.database_url,
|
||||||
|
|||||||
Reference in new issue
Block a user