Skip to content

Commit

Permalink
fix: add support for WEBINY_MIGRATION_FORCE_EXECUTE_5_39_6_001 env var
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j authored Jun 28, 2024
1 parent d65c7e6 commit ded920f
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,16 @@ export class MetaFieldsMigration {
});

if (dataMigrationRecordExists) {
this.logger.info("5.39.6-001 migration has already been executed. Exiting...");
return;
const forceExecuteEnvVar = process.env["WEBINY_MIGRATION_FORCE_EXECUTE_5_39_6_001"];
const forceExecute = forceExecuteEnvVar === "true";
if (!forceExecute) {
this.logger.info("5.39.6-001 migration has already been executed. Exiting...");
return;
}

this.logger.info(
"5.39.6-001 migration has already been executed, but force execution was requested."
);
}

this.logger.info("Starting 5.39.6-001 meta fields data migration...");
Expand Down

0 comments on commit ded920f

Please sign in to comment.