From b597ad0b3f13c6970d8fe9714fc403595092eb59 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 27 Dec 2019 22:54:29 -0500 Subject: [PATCH] fix unique constraint failure in migrate12to13 --- lbry/lbry/extras/daemon/migrator/migrate12to13.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/lbry/extras/daemon/migrator/migrate12to13.py b/lbry/lbry/extras/daemon/migrator/migrate12to13.py index 05bf7aee7..b89ef3f4e 100644 --- a/lbry/lbry/extras/daemon/migrator/migrate12to13.py +++ b/lbry/lbry/extras/daemon/migrator/migrate12to13.py @@ -65,7 +65,7 @@ def do_migration(conf): added_on from file; - insert into new_content_claim (stream_hash, bt_infohash, claim_outpoint) + insert or ignore into new_content_claim (stream_hash, bt_infohash, claim_outpoint) select stream_hash, NULL, claim_outpoint from content_claim; drop table file;