@@ -87,7 +87,6 @@ export interface PreparedMigration {
8787 steps : MigrationStepInternal [ ]
8888 migrationNeeded : boolean
8989 automaticStepCount : number
90- manualStepCount : number
9190 ignoredStepCount : number
9291 partialMigration : boolean
9392}
@@ -150,7 +149,6 @@ export async function prepareMigration(returnAllChunks?: boolean): Promise<Prepa
150149 } )
151150
152151 let automaticStepCount = 0
153- let manualStepCount = 0
154152 let ignoredStepCount = 0
155153
156154 let partialMigration = false
@@ -226,11 +224,8 @@ export async function prepareMigration(returnAllChunks?: boolean): Promise<Prepa
226224 for ( const step of Object . values < MigrationStepInternal > ( migrationSteps ) ) {
227225 stepsHash . push ( step . id )
228226 step . chunk . _steps . push ( step . id )
229- if ( ! step . canBeRunAutomatically ) {
230- manualStepCount ++
231- } else {
232- automaticStepCount ++
233- }
227+
228+ automaticStepCount ++
234229 }
235230
236231 // Only return the chunks which has steps in them:
@@ -251,7 +246,6 @@ export async function prepareMigration(returnAllChunks?: boolean): Promise<Prepa
251246 steps : steps ,
252247 migrationNeeded : migrationNeeded ,
253248 automaticStepCount : automaticStepCount ,
254- manualStepCount : manualStepCount ,
255249 ignoredStepCount : ignoredStepCount ,
256250 partialMigration : partialMigration ,
257251 }
@@ -322,9 +316,7 @@ export async function runMigration(
322316 }
323317 }
324318
325- logger . info (
326- `Migration: ${ migration . automaticStepCount } automatic and ${ migration . manualStepCount } manual steps (${ migration . ignoredStepCount } ignored).`
327- )
319+ logger . info ( `Migration: ${ migration . automaticStepCount } steps (${ migration . ignoredStepCount } ignored).` )
328320
329321 for ( const step of migration . steps ) {
330322 try {
@@ -367,12 +359,12 @@ export async function runMigration(
367359
368360 let migrationCompleted = false
369361
370- if ( migration . manualStepCount === 0 && ! warningMessages . length ) {
362+ if ( ! warningMessages . length ) {
371363 // continue automatically with the next batch
372364 logger . info ( 'Migration: Automatically continuing with next batch..' )
373365 migration . partialMigration = false
374366 const s = await getMigrationStatus ( )
375- if ( s . migration . automaticStepCount > 0 || s . migration . manualStepCount > 0 ) {
367+ if ( s . migration . automaticStepCount > 0 ) {
376368 try {
377369 const res = await runMigration ( s . migration . chunks , s . migration . hash , false , chunksLeft - 1 )
378370 if ( res . migrationCompleted ) {
@@ -426,13 +418,10 @@ export async function getMigrationStatus(): Promise<GetMigrationStatusResult> {
426418 migrationNeeded : migration . migrationNeeded ,
427419
428420 migration : {
429- canDoAutomaticMigration : migration . manualStepCount === 0 ,
430-
431421 hash : migration . hash ,
432422 chunks : migration . chunks ,
433423
434424 automaticStepCount : migration . automaticStepCount ,
435- manualStepCount : migration . manualStepCount ,
436425 ignoredStepCount : migration . ignoredStepCount ,
437426 partialMigration : migration . partialMigration ,
438427 } ,
0 commit comments