@@ -85,7 +85,6 @@ export interface PreparedMigration {
8585 steps : MigrationStepInternal [ ]
8686 migrationNeeded : boolean
8787 automaticStepCount : number
88- manualStepCount : number
8988 ignoredStepCount : number
9089 partialMigration : boolean
9190}
@@ -148,7 +147,6 @@ export async function prepareMigration(returnAllChunks?: boolean): Promise<Prepa
148147 } )
149148
150149 let automaticStepCount = 0
151- let manualStepCount = 0
152150 let ignoredStepCount = 0
153151
154152 let partialMigration = false
@@ -224,11 +222,8 @@ export async function prepareMigration(returnAllChunks?: boolean): Promise<Prepa
224222 for ( const step of Object . values < MigrationStepInternal > ( migrationSteps ) ) {
225223 stepsHash . push ( step . id )
226224 step . chunk . _steps . push ( step . id )
227- if ( ! step . canBeRunAutomatically ) {
228- manualStepCount ++
229- } else {
230- automaticStepCount ++
231- }
225+
226+ automaticStepCount ++
232227 }
233228
234229 // Only return the chunks which has steps in them:
@@ -249,7 +244,6 @@ export async function prepareMigration(returnAllChunks?: boolean): Promise<Prepa
249244 steps : steps ,
250245 migrationNeeded : migrationNeeded ,
251246 automaticStepCount : automaticStepCount ,
252- manualStepCount : manualStepCount ,
253247 ignoredStepCount : ignoredStepCount ,
254248 partialMigration : partialMigration ,
255249 }
@@ -320,9 +314,7 @@ export async function runMigration(
320314 }
321315 }
322316
323- logger . info (
324- `Migration: ${ migration . automaticStepCount } automatic and ${ migration . manualStepCount } manual steps (${ migration . ignoredStepCount } ignored).`
325- )
317+ logger . info ( `Migration: ${ migration . automaticStepCount } steps (${ migration . ignoredStepCount } ignored).` )
326318
327319 for ( const step of migration . steps ) {
328320 try {
@@ -365,12 +357,12 @@ export async function runMigration(
365357
366358 let migrationCompleted = false
367359
368- if ( migration . manualStepCount === 0 && ! warningMessages . length ) {
360+ if ( ! warningMessages . length ) {
369361 // continue automatically with the next batch
370362 logger . info ( 'Migration: Automatically continuing with next batch..' )
371363 migration . partialMigration = false
372364 const s = await getMigrationStatus ( )
373- if ( s . migration . automaticStepCount > 0 || s . migration . manualStepCount > 0 ) {
365+ if ( s . migration . automaticStepCount > 0 ) {
374366 try {
375367 const res = await runMigration ( s . migration . chunks , s . migration . hash , false , chunksLeft - 1 )
376368 if ( res . migrationCompleted ) {
@@ -424,13 +416,10 @@ export async function getMigrationStatus(): Promise<GetMigrationStatusResult> {
424416 migrationNeeded : migration . migrationNeeded ,
425417
426418 migration : {
427- canDoAutomaticMigration : migration . manualStepCount === 0 ,
428-
429419 hash : migration . hash ,
430420 chunks : migration . chunks ,
431421
432422 automaticStepCount : migration . automaticStepCount ,
433- manualStepCount : migration . manualStepCount ,
434423 ignoredStepCount : migration . ignoredStepCount ,
435424 partialMigration : migration . partialMigration ,
436425 } ,
0 commit comments