First Check
Commit to Help
Example Code
class Xconnect(SQLModel, table=True):
id: int = Field(primary_key=True)
lvc: Optional[str] = Field(sa_column_kwargs={"unique": True})
customer: int = Field(foreign_key="customer.id")
region: int = Field(foreign_key="attr.id")
Description
Im trying to see if I can update the exisitng generated table Xconnect without deleting and recreating it,
for example, if I wantto make the Region field Optional, adding
will not update the existing schema bcs the table is already created. How can I update the existing schema? Do I need to use Alembic for this?
Operating System
Linux
Operating System Details
linux mint 19
SQLModel Version
0.0.5
Python Version
3.8
Additional Context
No response
First Check
Commit to Help
Example Code
Description
Im trying to see if I can update the exisitng generated table Xconnect without deleting and recreating it,
for example, if I wantto make the Region field Optional, adding
will not update the existing schema bcs the table is already created. How can I update the existing schema? Do I need to use Alembic for this?
Operating System
Linux
Operating System Details
linux mint 19
SQLModel Version
0.0.5
Python Version
3.8
Additional Context
No response