UNIARC_NEWS / create_breaking_table.py
UNIARC123's picture
Upload folder using huggingface_hub
801bc8a verified
Raw
History Blame Contribute Delete
364 Bytes
from src.database.models import Base, engine, BreakingNews
try:
BreakingNews.__table__.create(bind=engine)
print("BreakingNews table created successfully.")
except Exception as e:
print(f"Error creating table: {e}")
from sqlalchemy import inspect
inspector = inspect(engine)
print("Updated Tables in database:", inspector.get_table_names())