Sha256: cc2b7916c51fb3708def363026eb4ad62968a6bfed7e4ef75f139c34e7899b83

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

Sequel.migration do
  up do
    @log.info { "Running migration #{__FILE__}" }

    alter_table :utxo do
      # This is used when deleting spent uxto rows
      add_index([:tx_hash, :tx_idx])

      # These don't seem to be necessary
      drop_index :tx_idx
      drop_index :value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bitcoin-ruby-0.0.6 lib/bitcoin/storage/utxo/migrations/003_update_indices.rb
bitcoin-ruby-0.0.5 lib/bitcoin/storage/utxo/migrations/003_update_indices.rb