Bugfix for index collision introduced with Db0054
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Swarmops.Database
|
||||
/// </summary>
|
||||
public static int DbVersionExpected
|
||||
{
|
||||
get { return 54; }
|
||||
get { return 55; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -52,3 +52,4 @@
|
||||
0052 - Added database support for multiple Bitcoin chain forks [RF]
|
||||
0053 - Bugfix for 0052 [RF]
|
||||
0054 - Fix for Conditional-CreateUTXO procedure with fork in effect [RF]
|
||||
0055 - Fix for bug introduced with 0054, hash collisions in index [RF]
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `HotBitcoinAddressUnspents`
|
||||
DROP INDEX `Ix_HashIndex` ,
|
||||
ADD UNIQUE INDEX `Ix_HashIndex` (`TransactionHash` ASC, `TransactionOutputIndex` ASC, `HotBitcoinAddressId` ASC)
|
||||
Reference in New Issue
Block a user