-- NOTE: the reserved-name rename in the up migration is NOT reversible. The original names
-- are not recorded anywhere, and reversing it would in any case re-create the state that
-- bricked admin login. Rolling back the schema does not roll back that data change.
DELETE FROM config WHERE key IN (
    'recover_name_rate_per_15min',
    'pin_reset_ip_rate_per_min',
    'upload_edit_rate_per_min',
    'upload_edit_rate_enabled'
);

ALTER TABLE "user" DROP COLUMN IF EXISTS last_failed_pin_at;
