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
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,28 +50,42 @@ warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitti
50
50
6 │ "id" serial NOT NULL PRIMARY KEY,
51
51
│ ━━━━━━
52
52
│
53
-
╰ help: Use 64-bit integer values instead to prevent hitting this limit.
53
+
├ help: Use 64-bit integer values instead to prevent hitting this limit.
54
+
╭╴
55
+
6 │ "id" bigserial NOT NULL PRIMARY KEY,
56
+
╰╴ +++
54
57
warning[prefer-identity]: Serial types make schema, dependency, and permission management difficult.
55
58
╭▸ example.sql:6:10
56
59
│
57
60
6 │ "id" serial NOT NULL PRIMARY KEY,
58
61
│ ━━━━━━
59
62
│
60
-
╰ help: Use an `IDENTITY` column instead.
63
+
├ help: Use an `IDENTITY` column instead.
64
+
╭╴
65
+
6 - "id" serial NOT NULL PRIMARY KEY,
66
+
6 + "id" integer generated by default as identity NOT NULL PRIMARY KEY,
67
+
╰╴
61
68
warning[prefer-text-field]: Changing the size of a `varchar` field requires an `ACCESS EXCLUSIVE` lock, that will prevent all reads and writes to the table.
62
69
╭▸ example.sql:7:13
63
70
│
64
71
7 │ "alpha" varchar(100) NOT NULL
65
72
│ ━━━━━━━━━━━━
66
73
│
67
-
╰ help: Use a `TEXT` field with a `CHECK` constraint.
74
+
├ help: Use a `TEXT` field with a `CHECK` constraint.
75
+
╭╴
76
+
7 - "alpha" varchar(100) NOT NULL
77
+
7 + "alpha" text NOT NULL
78
+
╰╴
68
79
warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed.
69
80
╭▸ example.sql:10:1
70
81
│
71
82
10 │ CREATE INDEX "field_name_idx" ON "table_name" ("field_name");
0 commit comments