-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
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
feat: migrate vertex_builds to sql database #2978
feat: migrate vertex_builds to sql database #2978
Conversation
ff42567
to
6e67953
Compare
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, @nicoloboschi
Thanks for all the help!
sa.Column("id", sqlmodel.sql.sqltypes.GUID(), nullable=False), | ||
sa.Column("flow_id", sqlmodel.sql.sqltypes.GUID(), nullable=False), | ||
sa.Column("error", sqlmodel.sql.sqltypes.AutoString(), nullable=True), | ||
sa.ForeignKeyConstraint( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put names in the constraints in case we need to update them later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a very good idea, I did it now for the vertex_builds.
For transactions it has been already reelased so I will leave it as is :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We'll have to find a way to deal with this later. SQLModel 0.0.21 has cascade_delete
but it would require us to update the constraints. There's also a UUID compatibility issue in it, though.
6e67953
to
d3985f3
Compare
* feat: migrate vertex_builds to sql database * [autofix.ci] apply automated fixes * name --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> (cherry picked from commit c7575b1)
No description provided.