aboutsummaryrefslogtreecommitdiffstats
path: root/internal/services/migration.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/services/migration.go')
-rw-r--r--internal/services/migration.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/services/migration.go b/internal/services/migration.go
index bc4b9d1..446f267 100644
--- a/internal/services/migration.go
+++ b/internal/services/migration.go
@@ -189,6 +189,8 @@ func (ms MigrationService) RevertDownToVersion(version string) error {
return fmt.Errorf("migration with version %s does not exist", version)
}
if !targetMigration.Applied {
+ // Assumption: Every migration from the latest down to the target
+ // migration hasn't been applied.
return fmt.Errorf(
"migration with version %s isn't applied, nothing to revert",
version,