Bugfix for index collision introduced with Db0054

This commit is contained in:
Rick Falkvinge
2017-11-20 13:09:21 +01:00
parent 44dd7a1aa6
commit 1331b4c32c
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace Swarmops.Database
/// </summary>
public static int DbVersionExpected
{
get { return 54; }
get { return 55; }
}
+1
View File
@@ -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]
+3
View File
@@ -0,0 +1,3 @@
ALTER TABLE `HotBitcoinAddressUnspents`
DROP INDEX `Ix_HashIndex` ,
ADD UNIQUE INDEX `Ix_HashIndex` (`TransactionHash` ASC, `TransactionOutputIndex` ASC, `HotBitcoinAddressId` ASC)