From 91fccc421ae87623b64617d1c3e0ec5fde7f4a4b Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 16 Mar 2023 17:25:20 +0200 Subject: [PATCH] add ON CONFLICT REPLACE clause in messages --- chain/index/msgindex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/index/msgindex.go b/chain/index/msgindex.go index 0140b3e74..aa23b4e4d 100644 --- a/chain/index/msgindex.go +++ b/chain/index/msgindex.go @@ -26,7 +26,7 @@ var log = logging.Logger("msgindex") var dbName = "msgindex.db" var dbDefs = []string{ `CREATE TABLE IF NOT EXISTS messages ( - cid VARCHAR(80) PRIMARY KEY, + cid VARCHAR(80) PRIMARY KEY ON CONFLICT REPLACE, tipset_cid VARCHAR(80) NOT NULL, epoch INTEGER NOT NULL )`,