mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 11:19:57 +00:00
renamed seed to app_seed
This commit is contained in:
7
app_seed.py
Normal file
7
app_seed.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from application import db, app
|
||||
from application.models import AllowedPlate
|
||||
|
||||
with app.app_context():
|
||||
AllowedPlate.query.delete()
|
||||
db.session.add(AllowedPlate("MUN389"))
|
||||
db.session.commit()
|
||||
Reference in New Issue
Block a user