Blockscout: Able to run migrations without having to drop all tables?

Created on 20 Jun 2019  路  5Comments  路  Source: blockscout/blockscout

I recently rebased with 2.0.0-beta release since my last rebase which was about 3-4 months ago so much has changed.

I was wondering if we are able to run the migrations and get the DB schema up-to-date without having to drop all the tables and re-sync from scratch. Thanks.

question

All 5 comments

Yes, you do not need to drop all the tables and resync from scratch. But some migrations can take hours depending on the amount of data in the chain and your Blockscout instance can have downtime. Please take it in mind.

@vbaranov Just need to run mix do ecto.migrate?

@dwalintukan yes, mix do ecto.migrate

Would suggest to add that to the Readme. Especially for Elixir noobs like myself 馃槅
image

@dwalintukan we collected all docs about Blockscout in the GitHub pages: https://poanetwork.github.io/blockscout/#/manual-deployment

Was this page helpful?
0 / 5 - 0 ratings

Related issues

igorffs picture igorffs  路  7Comments

dwalintukan picture dwalintukan  路  4Comments

bellaj picture bellaj  路  6Comments

SVINCHAIN picture SVINCHAIN  路  3Comments

Tbaut picture Tbaut  路  7Comments