forked from mirrors/bookwyrm
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;
|
GRANT ALL PRIVILEGES ON DATABASE fedireads TO fedireads;
|
||||||
```
|
```
|
||||||
|
|
||||||
Initialize the database (this will also delete and re-create the migrations, which is not
|
Initialize the database (or, more specifically, delete the existing database, run migrations, and start fresh):
|
||||||
a good idea for the long term but it's what I'm doing right now).
|
|
||||||
``` bash
|
``` bash
|
||||||
./rebuilddb.sh
|
./rebuilddb.sh
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
rm fedireads/migrations/0*
|
|
||||||
set -e
|
set -e
|
||||||
dropdb fedireads
|
dropdb fedireads
|
||||||
createdb fedireads
|
createdb fedireads
|
||||||
|
|
Loading…
Reference in a new issue