fix:account expiry autopause index

This commit is contained in:
jjaw committed 2026-06-12 01:38:09 +08:00
1 parent e34ad2b194
commit e4c255a77a
3 files changed
+20

No files matched your search

@@ -32,6 +32,7 @@ func TestMigrationsRunner_IsIdempotent_AndSchemaIsUpToDate(t *testing.T) {
requireColumn(t, tx, "accounts", "rate_limit_reset_at", "timestamp with time zone", 0, true)
requireColumn(t, tx, "accounts", "overload_until", "timestamp with time zone", 0, true)
requireColumn(t, tx, "accounts", "session_window_status", "character varying", 20, true)
requireIndex(t, tx, "accounts", "idx_accounts_autopause_expiry_due")
// api_keys: key length should be 128
requireColumn(t, tx, "api_keys", "key", "character varying", 128, false)