Files
pocket-id/backend/resources/migrations/postgres/20250628000000_audit_logs_ip_null.up.sql

6 lines
218 B
MySQL
Raw Normal View History

ALTER TABLE audit_logs ALTER COLUMN ip_address DROP NOT NULL;
-- Add missing indexes
CREATE INDEX idx_audit_logs_created_at ON audit_logs(created_at);
CREATE INDEX idx_audit_logs_user_agent ON audit_logs(user_agent);