We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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")
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
region: Optional[int]
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?
Linux
linux mint 19
0.0.5
3.8
No response
The text was updated successfully, but these errors were encountered:
As you've mentioned, Alembic would be a good solve.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: