Files
warmbly/internal/infrastructure/db/migrations/000037_api_key_smart_limits.down.sql
T
Matthew Meszaros 1317ea67d6 fix: rename duplicate migration 000035 to 000037
PR #10 added 000035_api_key_suffix and PR #11 separately added
000035_api_key_smart_limits, both targeting the api_keys table.
golang-migrate refuses to load when two source files share a
version number, so the backend container failed health checks
in fresh stacks.

Bumping api_key_smart_limits to 000037 keeps PR #10 in its
original slot (it landed first) and matches the next free
version after 000036_contact_categories. The two migrations
touch different columns so apply order does not matter.
2026-05-25 11:43:14 +00:00

8 lines
258 B
SQL

DROP INDEX IF EXISTS idx_api_key_usage_endpoint;
DROP INDEX IF EXISTS idx_api_key_usage_key_time_status;
ALTER TABLE api_keys
DROP COLUMN IF EXISTS last_request_ip,
DROP COLUMN IF EXISTS description,
DROP COLUMN IF EXISTS rate_limit_per_minute;