File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ CREATE TABLE address_balance (
4141 siafund_balance BLOB NOT NULL
4242);
4343CREATE INDEX address_balance_address_index ON address_balance(address);
44+ CREATE INDEX address_balance_siacoin_balance_index ON address_balance(siacoin_balance);
45+ CREATE INDEX address_balance_siafund_balance_index ON address_balance(siafund_balance);
4446
4547CREATE TABLE siacoin_elements (
4648 id INTEGER PRIMARY KEY ,
Original file line number Diff line number Diff line change @@ -36,8 +36,15 @@ func migrateV4(txn *txn, log *zap.Logger) error {
3636 return nil
3737}
3838
39+ func migrateV5 (tx * txn , _ * zap.Logger ) error {
40+ _ , err := tx .Exec (`CREATE INDEX address_balance_siacoin_balance_index ON address_balance(siacoin_balance);
41+ CREATE INDEX address_balance_siafund_balance_index ON address_balance(siafund_balance);` )
42+ return err
43+ }
44+
3945var migrations = []func (tx * txn , log * zap.Logger ) error {
4046 migrateV2 ,
4147 migrateV3 ,
4248 migrateV4 ,
49+ migrateV5 ,
4350}
You can’t perform that action at this time.
0 commit comments