feat(migrations): CLI generate command (#8103)

This commit is contained in:
Adrien de Peretti
2024-07-12 13:12:49 +02:00
committed by GitHub
parent 4c2e9a3239
commit 104b00d4e9
14 changed files with 341 additions and 164 deletions
@@ -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