mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Stop deleting and re-building the migrations
This commit is contained in:
parent
e7a0c261be
commit
8aa6676e6c
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/bin/bash
|
||||
rm fedireads/migrations/0*
|
||||
set -e
|
||||
dropdb fedireads
|
||||
createdb fedireads
|
||||
|
|
Loading…
Reference in a new issue