Stop deleting and re-building the migrations

This commit is contained in:
Mouse Reeve 2020-02-15 12:39:28 -08:00
parent e7a0c261be
commit 8aa6676e6c
2 changed files with 1 additions and 3 deletions

View file

@ -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
```

View file

@ -1,5 +1,4 @@
#!/bin/bash
rm fedireads/migrations/0*
set -e
dropdb fedireads
createdb fedireads