BEGIN;

DROP INDEX IF EXISTS idx_daily_checklists_unique_non_rejected;

ALTER TABLE daily_checklists
    ADD CONSTRAINT daily_checklists_date_kandang_category_key
    UNIQUE (date, kandang_id, category);

COMMIT;
