Instructions on clearing database
This commit is contained in:
parent
e31aa8ab34
commit
783690a81c
@ -3,3 +3,16 @@
|
||||
This repo uses [pre-commit](https://pre-commit.com/). Install the tool with `pip install pre-commit` (or just `pip install -r requirements-dev.txt`), then install the hooks with `pre-commit install`
|
||||
|
||||
Not yet configured to run this in CI, as I'm the only contributor :P but I definitely should if I start getting contributions!
|
||||
|
||||
# To wipe the database:
|
||||
|
||||
```
|
||||
delete from elo_scores;
|
||||
delete from games;
|
||||
delete from decks;
|
||||
delete from players;
|
||||
alter sequence decks_id_seq restart with 1;
|
||||
alter sequence games_id_seq restart with 1;
|
||||
alter sequence players_id_seq restart with 1;
|
||||
alter sequence elo_scores_id_seq restart with 1;
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user