diff --git a/README.md b/README.md index 3109b4bf..8710b946 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,7 @@ CREATE ROLE fedireads WITH LOGIN PASSWORD 'fedireads'; GRANT ALL PRIVILEGES ON DATABASE fedireads TO fedireads; ``` -Initialize the database (this will also delete and re-create the migrations, which is not -a good idea for the long term but it's what I'm doing right now). +Initialize the database (or, more specifically, delete the existing database, run migrations, and start fresh): ``` bash ./rebuilddb.sh ``` diff --git a/rebuilddb.sh b/rebuilddb.sh index 446edff0..fd82950e 100755 --- a/rebuilddb.sh +++ b/rebuilddb.sh @@ -1,5 +1,4 @@ #!/bin/bash -rm fedireads/migrations/0* set -e dropdb fedireads createdb fedireads