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 48859d6..c0d043b 100644
--- a/internal/services/migration.go
+++ b/internal/services/migration.go
@@ -105,6 +105,8 @@ func (ms MigrationService) ApplyUpToVersion(version string) error {
return fmt.Errorf("migration with version %s does not exist", version)
}
if targetMigration.Applied {
+ // Assumption: If the target migration is applied, all migrations before
+ // it must also be applied.
return fmt.Errorf(
"migration with version %s is already applied, nothing to apply",
version,