chore(): Accept an extra agument 'all-or-nothing' on the migrate command (#14262)

* chore(): Accept an extra agument 'all-or-nothing' on the migrate command

* Create rich-camels-brush.md

* chore(): Accept an extra agument 'all-or-nothing' on the migrate command

* chore(): Accept an extra agument 'all-or-nothing' on the migrate command

* chore(): Accept an extra agument 'all-or-nothing' on the migrate command

* chore(): fix broken down migrations

* chore(): update changeset
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2025-12-10 09:23:41 +01:00
1 parent 9bcfb990bf
commit 356283c359
13 files changed
+139 -56

No files matched your search

@@ -27,6 +27,7 @@ export async function migrate({
skipScripts,
executeAllLinks,
executeSafeLinks,
allOrNothing,
concurrency,
logger,
container,
@@ -36,6 +37,7 @@ export async function migrate({
skipScripts: boolean
executeAllLinks: boolean
executeSafeLinks: boolean
allOrNothing?: boolean
concurrency?: number
logger: Logger
container: MedusaContainer
@@ -79,6 +81,7 @@ export async function migrate({
await medusaAppLoader.runModulesMigrations({
action: "run",
allOrNothing,
})
logger.log(new Array(TERMINAL_SIZE).join("-"))
logger.info("Migrations completed")
@@ -127,6 +130,7 @@ const main = async function ({
executeAllLinks,
executeSafeLinks,
concurrency,
allOrNothing,
}) {
process.env.MEDUSA_WORKER_MODE = "server"
const container = await initializeContainer(directory)
@@ -140,6 +144,7 @@ const main = async function ({
executeAllLinks,
executeSafeLinks,
concurrency,
allOrNothing,
logger,
container,
})