add database population script
This commit is contained in:
parent
82d870e825
commit
3a5f31bfac
2 changed files with 12 additions and 1 deletions
|
@ -14,4 +14,9 @@ def add():
|
|||
iepoev = User()
|
||||
iepoev.configure('iepoev', True, 1)
|
||||
db.session.add(iepoev)
|
||||
|
||||
flynn = User()
|
||||
flynn.configure('flynn', True, 0)
|
||||
db.session.add(flynn)
|
||||
|
||||
# To future developers, add yourself here
|
6
populate-db.sh
Executable file
6
populate-db.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd app
|
||||
cp database/* .
|
||||
../venv/bin/python create_database.py
|
||||
rm -f add_* create_database.py muhscheme
|
Loading…
Reference in a new issue