Adjust script to drop all tables and reset from scratch.

This updates the script for resetting the database so that it drops and
recreates all the tables, instead of disabling Postgres triggers and
truncating most of the tables. The latter strategy requires superuser
permissions in Postgres that the db user we manage in Azure does not
have. The script now:

- drops the tables
- reruns the alembic migrations
- reseeds the permission sets
This commit is contained in:
dandds
2019-11-21 15:34:35 -05:00
parent 3f146c7da8
commit cd3cb7b614
2 changed files with 10 additions and 8 deletions

0
script/__init__.py Normal file
View File