You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now drop_constraint operation only supports dropping constraints that include a single column. With the introduction of create_constraint we now support creating constraints with multiple columns. Now we need to adjust drop_constraint.
The text was updated successfully, but these errors were encountered:
This will require a breaking change to the drop_constraint operation format.
Dropping a multi-column constraint will require down, and optionally up, data migrations to be specified for all columns covered by the constraint. This will mean the operation has to change from its current format:
[
{
"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 up and down data migrations for multiple columns:
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: