-
Notifications
You must be signed in to change notification settings - Fork 73
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
Support multiple columns in drop_constraint
#458
Comments
This will require a breaking change to the Dropping a multi-column constraint will require [
{
"drop_constraint": {
"table": "posts",
"name": "title_length",
"up": "title",
"down": "(SELECT CASE WHEN length(title) <= 3 THEN LPAD(title, 4, '-') ELSE title END)"
}
}
] to something that allows [
{
"drop_constraint": {
"table": "tickets",
"name": "check_zip_name",
"up": {
"sellers_name": "sellers_name",
"sellers_zip": "sellers_zip"
},
"down": {
"sellers_name": "sellers_name",
"sellers_zip": "sellers_zip"
}
}
}
] This new format looks similar to the |
Right now
drop_constraint
operation only supports dropping constraints that include a single column. With the introduction ofcreate_constraint
we now support creating constraints with multiple columns. Now we need to adjustdrop_constraint
.The text was updated successfully, but these errors were encountered: