File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/migrations/src/migrations/5.39.6/001/ddb-es Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,16 @@ export class MetaFieldsMigration {
71
71
} ) ;
72
72
73
73
if ( dataMigrationRecordExists ) {
74
- this . logger . info ( "5.39.6-001 migration has already been executed. Exiting..." ) ;
75
- return ;
74
+ const forceExecuteEnvVar = process . env [ "WEBINY_MIGRATION_FORCE_EXECUTE_5_39_6_001" ] ;
75
+ const forceExecute = forceExecuteEnvVar === "true" ;
76
+ if ( ! forceExecute ) {
77
+ this . logger . info ( "5.39.6-001 migration has already been executed. Exiting..." ) ;
78
+ return ;
79
+ }
80
+
81
+ this . logger . info (
82
+ "5.39.6-001 migration has already been executed, but force execution was requested."
83
+ ) ;
76
84
}
77
85
78
86
this . logger . info ( "Starting 5.39.6-001 meta fields data migration..." ) ;
You can’t perform that action at this time.
0 commit comments