-- Manual-only rules ("quick actions"): a rule flagged manual_only is never -- picked up by the bulk apply-all run. It exists to be fired by hand against a -- selection of transactions from the transactions page, so its conditions are -- irrelevant — the selection is the condition. ALTER TABLE rules ADD COLUMN IF NOT EXISTS manual_only BOOLEAN NOT NULL DEFAULT false; CREATE INDEX IF NOT EXISTS idx_rules_manual_only ON rules (owner_id, manual_only) WHERE manual_only = true;