mirror of
https://github.com/xataio/pgroll.git
synced 2024-08-16 09:10:26 +03:00
15 lines
315 B
JSON
15 lines
315 B
JSON
|
{
|
||
|
"name": "23_drop_check_constraint",
|
||
|
"operations": [
|
||
|
{
|
||
|
"drop_constraint": {
|
||
|
"table": "posts",
|
||
|
"column": "title",
|
||
|
"name": "title_length",
|
||
|
"up": "title",
|
||
|
"down": "(SELECT CASE WHEN length(title) <= 3 THEN LPAD(title, 4, '-') ELSE title END)"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|