diff --git a/src/AbpDevTools/Commands/MigrateCommand.cs b/src/AbpDevTools/Commands/MigrateCommand.cs index 98bff69..48984c0 100644 --- a/src/AbpDevTools/Commands/MigrateCommand.cs +++ b/src/AbpDevTools/Commands/MigrateCommand.cs @@ -46,6 +46,12 @@ public async ValueTask ExecuteAsync(IConsole console) var cancellationToken = console.RegisterCancellationHandler(); + if (dbMigrators.Count == 0) + { + await console.Output.WriteLineAsync($"No migrator(s) found in this folder. Migration not applied."); + return; + } + await console.Output.WriteLineAsync($"{dbMigrators.Count} db migrator(s) found."); var commandPostFix = NoBuild ? " --no-build" : string.Empty;