create all tables on startup
This commit is contained in:
parent
653151c8bd
commit
f4002b4ac7
@ -22,6 +22,9 @@ class Database(SQLAlchemy):
|
||||
|
||||
super().init_app(app)
|
||||
|
||||
with app.app_context():
|
||||
self.create_all()
|
||||
|
||||
db = Database()
|
||||
|
||||
class Locale(db.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user