aboutsummaryrefslogtreecommitdiff
path: root/internal/db/migrations/v21_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/migrations/v21_test.go')
-rw-r--r--internal/db/migrations/v21_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/db/migrations/v21_test.go b/internal/db/migrations/v21_test.go
index d11c47c5..866e9074 100644
--- a/internal/db/migrations/v21_test.go
+++ b/internal/db/migrations/v21_test.go
@@ -79,4 +79,8 @@ func TestAddIndexToActionUserID(t *testing.T) {
err = addIndexToActionUserID(db)
require.NoError(t, err)
assert.True(t, db.Migrator().HasIndex(&actionV21{}, "UserID"))
+
+ // Re-run should be skipped
+ err = addIndexToActionUserID(db)
+ require.Equal(t, errMigrationSkipped, err)
}