fc-common: use btree index for build_outputs.path in db schema

Btree supports NULL values and provides better flexibility
than hash index for nullable columns.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ida28ef6f88683c360e6f405efca435af6a6a6964
This commit is contained in:
raf 2026-02-28 21:42:27 +03:00
commit 959aba0933
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -166,7 +166,7 @@ CREATE TABLE build_outputs (
PRIMARY KEY (build, name)
);
CREATE INDEX idx_build_outputs_path ON build_outputs USING hash (path);
CREATE INDEX idx_build_outputs_path ON build_outputs USING btree (path);
-- build_products: output artifacts and metadata
CREATE TABLE build_products (