fix(medusa): fixes db setup command to not load connection before creating db (#13653)

This commit is contained in:
Riqwan Thamir authored and GitHub committed 2025-10-02 13:49:22 +02:00
1 parent 762cd445e0
commit 71014bafa6
2 files changed
+10 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): fixes db setup command to not load connection before creating db
+5 -1
View File
@@ -12,7 +12,9 @@ const main = async function ({
executeAllLinks, executeAllLinks,
executeSafeLinks, executeSafeLinks,
}) { }) {
const container = await initializeContainer(directory) let container = await initializeContainer(directory, {
skipDbConnection: true,
})
const logger = container.resolve(ContainerRegistrationKeys.LOGGER) const logger = container.resolve(ContainerRegistrationKeys.LOGGER)
try { try {
@@ -21,6 +23,8 @@ const main = async function ({
process.exit(1) process.exit(1)
} }
container = await initializeContainer(directory)
const migrated = await migrate({ const migrated = await migrate({
directory, directory,
skipLinks, skipLinks,