feat(migrations): CLI generate command (#8103)
This commit is contained in:
@@ -39,9 +39,9 @@ export async function initDb({
|
||||
|
||||
try {
|
||||
const {
|
||||
migrateMedusaApp,
|
||||
runMedusaAppMigrations,
|
||||
} = require("@medusajs/medusa/dist/loaders/medusa-app")
|
||||
await migrateMedusaApp({ configModule, container })
|
||||
await runMedusaAppMigrations({ configModule, container })
|
||||
} catch (err) {
|
||||
console.error("Something went wrong while running the migrations")
|
||||
throw err
|
||||
|
||||
Reference in New Issue
Block a user