Mariam-metho / reset_db.py
kuro223's picture
a
51a3c38
raw
history blame
163 Bytes
from app import app, db, add_sample_data
with app.app_context():
db.drop_all()
db.create_all()
add_sample_data()
print("Database reset complete.")