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
We have a history, even recently, of not using PRIMARY KEYs and many of the cases seem tragically just because someone was unaware that it is good practice / maybe cribbed off earlier schema deltas. In many cases a UNIQUE index was created instead when that could've been a PRIMARY KEY.
This PR adds a test that flags up missing PRIMARY KEYs.
Base: develop
Original commit schedule, with full messages:
Add a PRIMARY KEY lint
The text was updated successfully, but these errors were encountered:
This issue has been migrated from #16648.
We have a history, even recently, of not using PRIMARY KEYs and many of the cases seem tragically just because someone was unaware that it is good practice / maybe cribbed off earlier schema deltas. In many cases a
UNIQUE
index was created instead when that could've been aPRIMARY KEY
.This PR adds a test that flags up missing PRIMARY KEYs.
Base:
develop
Original commit schedule, with full messages:
Add a PRIMARY KEY lint
The text was updated successfully, but these errors were encountered: