File size: 284 Bytes
6ea020b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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()