analyseether / ether_sql

A python library to push ethereum blockchain data into an sql database.
http://ether-sql.readthedocs.io
Apache License 2.0
69 stars 22 forks source link

Use alembic migrations to drop and create tables #23

Closed ankitchiplunkar closed 6 years ago

ankitchiplunkar commented 6 years ago

Is your feature request related to a problem? Please describe. The drop_tables and create_tables cli functions drop and create tables from the base.metadata, this does not delete the alembic_migrations table. Hence if we want to perform ether_sql sql upgrade after ether_sql drop_tables upgrade will not happen.

Describe the solution you'd like

  1. Remove the cli functions ether_sql sql create_tables and ether_sql sql upgrade and point them to the new function.
  2. Remove alembic_migrations table while using ether_sql sql drop_tables
  3. Add appropriate docs in the readme and installation section