diff --git a/stores/sql/mysql/main.go b/stores/sql/mysql/main.go index 53e9fa9aa..6a883b8bf 100644 --- a/stores/sql/mysql/main.go +++ b/stores/sql/mysql/main.go @@ -784,7 +784,7 @@ func (tx *MainDatabaseTx) SetContractSet(ctx context.Context, name string, contr // remove unwanted contracts _, err = tx.Exec(ctx, fmt.Sprintf(` - DELETE contract_set_contracts + DELETE csc FROM contract_set_contracts csc INNER JOIN contracts c ON c.id = csc.db_contract_id WHERE c.fcid NOT IN (%s)