mattermore/setup_database.py
2018-09-24 20:57:36 +02:00

8 lines
142 B
Python

#!/usr/bin/env python3
from app.app import db, models
db.create_all()
db.session.add(models.User('admin', admin=True))
db.session.commit()