Sha256: 367bac73ab1db335cad194cfb6ed6046fe820b0a3c406c02c1c7d365c5a0508a

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

Sequel.migration do

  up do

    @log.info { "Running migration #{__FILE__}" }

    if adapter_scheme == :postgres
      execute "DROP VIEW unconfirmed"  if self.views.include?(:unconfirmed)
      execute "ALTER TABLE tx ALTER COLUMN hash TYPE bytea USING hash::bytea"
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitcoin-ruby-0.0.6 lib/bitcoin/storage/sequel/migrations/005_change_tx_hash_to_bytea.rb