-- migrate:up
-- entity_id era NOT NULL pero los nuevos eventos (login/logout, settings,
-- auth-related) no tienen una entity natural. Relajamos a NULL.
ALTER TABLE audit_log ALTER COLUMN entity_id DROP NOT NULL;

-- migrate:down
ALTER TABLE audit_log ALTER COLUMN entity_id SET NOT NULL;
