BEGIN;

ALTER TABLE tasks
  ADD COLUMN IF NOT EXISTS client_ip INET;

CREATE INDEX IF NOT EXISTS idx_tasks_client_ip ON tasks(client_ip);

COMMIT;

