From 4c1139136c00ead1558a07f3c0adf5826b3772d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 1 Dec 2023 17:15:42 +0100 Subject: [PATCH] path index: dbindex: Fix sector_location schema --- lib/harmony/harmonydb/sql/20230712.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/harmony/harmonydb/sql/20230712.sql b/lib/harmony/harmonydb/sql/20230712.sql index 37024b471..168289f09 100644 --- a/lib/harmony/harmonydb/sql/20230712.sql +++ b/lib/harmony/harmonydb/sql/20230712.sql @@ -13,7 +13,11 @@ create table sector_location primary key (miner_id, sector_num, sector_filetype, storage_id) ); +alter table lotus.sector_location + alter column read_refs set not null; +alter table lotus.sector_location + alter column read_refs set default 0; create table storage_path (