NexLab_System / migrations /migrate_calcontrol.py
alisaleem97's picture
Upload folder using huggingface_hub
6ea020b verified
Raw History Blame Contribute Delete
284 Bytes
from sqlmodel import SQLModel
from database import engine
from models import CalControl
def migrate():
print("Creating CalControl table if it doesn't exist...")
SQLModel.metadata.create_all(engine)
print("Migration successful.")
if __name__ == "__main__":
migrate()