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
@@ -23,7 +23,15 @@ You can leave the column as nullable or delete the column once queries no longer
23
23
altertable test drop column id;
24
24
```
25
25
26
-
<preclass="language-text"><codeclass="language-text">code-block.sql <ahref="https://pglt.dev/linter/rules/ban-drop-column">lint/safety/banDropColumn</a> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br /><br /> <strong><spanstyle="color: Tomato;">✖</span></strong> <spanstyle="color: Tomato;">Dropping a column may break existing clients.</span><br /> <br /> <strong><spanstyle="color: lightgreen;">ℹ</span></strong> <spanstyle="color: lightgreen;">You can leave the column as nullable or delete the column once queries no longer select or modify the column.</span><br /> <br /></code></pre>
@@ -23,7 +23,15 @@ You can consider using a marker value that represents NULL. Alternatively, creat
23
23
altertable users alter column email drop not null;
24
24
```
25
25
26
-
<preclass="language-text"><codeclass="language-text">code-block.sql <ahref="https://pglt.dev/linter/rules/ban-drop-not-null">lint/safety/banDropNotNull</a> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br /><br /> <strong><spanstyle="color: Tomato;">✖</span></strong> <spanstyle="color: Tomato;">Dropping a NOT NULL constraint may break existing clients.</span><br /> <br /> <strong><spanstyle="color: lightgreen;">ℹ</span></strong> <spanstyle="color: lightgreen;">Consider using a marker value that represents NULL. Alternatively, create a new table allowing NULL values, copy the data from the old table, and create a view that filters NULL values.</span><br /> <br /></code></pre>
× Dropping a NOT NULL constraint may break existing clients.
30
+
31
+
i Consider using a marker value that represents NULL. Alternatively, create a new table allowing NULL values, copy the data from the old table, and create a view that filters NULL values.
0 commit comments