add database population script

This commit is contained in:
mcbloch 2019-04-04 18:27:50 +02:00
parent 82d870e825
commit 3a5f31bfac
2 changed files with 12 additions and 1 deletions

View file

@ -14,4 +14,9 @@ def add():
iepoev = User() iepoev = User()
iepoev.configure('iepoev', True, 1) iepoev.configure('iepoev', True, 1)
db.session.add(iepoev) db.session.add(iepoev)
flynn = User()
flynn.configure('flynn', True, 0)
db.session.add(flynn)
# To future developers, add yourself here # To future developers, add yourself here

6
populate-db.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
cd app
cp database/* .
../venv/bin/python create_database.py
rm -f add_* create_database.py muhscheme