From 8aa6676e6c5365ee0b49a382e24d7992fc2a3e82 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 15 Feb 2020 12:39:28 -0800 Subject: [PATCH] Stop deleting and re-building the migrations --- README.md | 3 +-- rebuilddb.sh | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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