docs/reference/rules/ban-drop-column.md
Diagnostic Category: lint/safety/banDropColumn
Since: vnext
[!NOTE] This rule is recommended. A diagnostic error will appear when linting your code.
Sources:
Dropping a column may break existing clients.
Update your application code to no longer read or write the column.
You can leave the column as nullable or delete the column once queries no longer select or modify the column.
alter table test drop column id;
code-block.sql:1:1 lint/safety/banDropColumn ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Dropping a column may break existing clients.
> 1 │ alter table test drop column id;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 │
i You can leave the column as nullable or delete the column once queries no longer select or modify the column.
{
"linter": {
"rules": {
"safety": {
"banDropColumn": "error"
}
}
}
}