Initial commit: SIBU 2.0 MISSION
This commit is contained in:
13
backend/reset_favorites.py
Normal file
13
backend/reset_favorites.py
Normal file
@ -0,0 +1,13 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user