Files
SIB/backend/reset_favorites.py

14 lines
376 B
Python

from app.core.database import engine
from app.models.favorite import Favorite
def reset_favorites():
# Only drop favorites table
print("Dropping favorites table...")
Favorite.__table__.drop(engine, checkfirst=True)
print("Creating favorites table...")
Favorite.__table__.create(engine)
print("Done.")
if __name__ == "__main__":
reset_favorites()