src-d / ghsync

GitHub API v3 > PostgreSQL
https://sourced.tech
GNU General Public License v3.0
9 stars 8 forks source link

Provide a way to reset/drop tables #55

Open se7entyse7en opened 5 years ago

se7entyse7en commented 5 years ago

It could be useful to provide a sub-command to drop the tables or reset them in order to start from scratch. Alternatively/in addition, we could also add a flag to the deep and shallow (such as --drop/reset) that first drops/resets the tables.

What I've done was to manually drop all the tables repositories, issues, etc. and schema_migrations.