Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
193 B · 5 lines
SQL
123456ALTER TABLE artifact ADD COLUMN minimum INTEGER NOT NULL DEFAULT 0 CHECK (minimum IN (0, 1));
CREATE UNIQUE INDEX artifact_minimumON artifact (channel, name, distribution)WHERE minimum = 1;