ALTER TABLE signals.video
    ALTER COLUMN dataset SET NOT NULL,
    ADD COLUMN event_id bigint;

CREATE UNIQUE INDEX dataset_event_id_unique_idx
ON signals.video (dataset, event_id)
WHERE event_id IS NOT NULL;
