1
0
Fork 0

add sqlite support

This commit is contained in:
thricedotted 2020-02-15 14:19:36 -08:00
parent 03e5a624ad
commit 16a4decf44
8 changed files with 91 additions and 12 deletions

View file

@ -6,8 +6,16 @@ if [ ! -f .env ]; then
cp .env.example .env
fi
dropdb fedireads
createdb fedireads
source .env
if [ $FEDIREADS_DATABASE_BACKEND = 'sqlite' ]; then
rm fedireads.db
else
# assume postgres
dropdb fedireads
createdb fedireads
fi
python manage.py makemigrations fedireads
python manage.py migrate