parent
6cbbe1f2ae
commit
a176c38825
@ -0,0 +1,15 @@ |
|||||||
|
defmodule Explorer.Repo.Migrations.AddIndexBlocksRefetchNeeded do |
||||||
|
use Ecto.Migration |
||||||
|
|
||||||
|
def up do |
||||||
|
execute(""" |
||||||
|
CREATE INDEX consensus_block_hashes_refetch_needed ON blocks((1)) WHERE consensus and refetch_needed; |
||||||
|
""") |
||||||
|
end |
||||||
|
|
||||||
|
def down do |
||||||
|
execute(""" |
||||||
|
DROP INDEX consensus_block_hashes_refetch_needed; |
||||||
|
""") |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue