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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,42 +44,42 @@ warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitti
44
44
--> example.sql:6:10
45
45
|
46
46
6 |"id" serial NOT NULL PRIMARY KEY,
47
-
|^^^^^^
47
+
|------
48
48
|
49
49
= help: Use 64-bit integer values instead to prevent hitting this limit.
50
50
warning[prefer-identity]: Serial types make schema, dependency, and permission management difficult.
51
51
--> example.sql:6:10
52
52
|
53
53
6 |"id" serial NOT NULL PRIMARY KEY,
54
-
|^^^^^^
54
+
|------
55
55
|
56
56
= help: Use Identity columns instead.
57
57
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.
58
58
--> example.sql:7:13
59
59
|
60
60
7 |"alpha" varchar(100) NOT NULL
61
-
|^^^^^^^^^^^^
61
+
|------------
62
62
|
63
63
= help: Use a `TEXT` field with a `CHECK` constraint.
64
64
warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed.
65
65
--> example.sql:10:1
66
66
|
67
67
10 | CREATE INDEX "field_name_idx" ON "table_name" ("field_name");
= help: Use `NOT VALID` with a later `VALIDATE CONSTRAINT` call.
78
78
warning[disallowed-unique-constraint]: Adding a `UNIQUE` constraint requires an `ACCESS EXCLUSIVE` lock which blocks reads and writes to the table while the index is built.
79
79
--> example.sql:12:28
80
80
|
81
81
12 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
warning[disallowed-unique-constraint]: Adding a `UNIQUE` constraint requires an `ACCESS EXCLUSIVE` lock which blocks reads and writes to the table while the index is built.
63
63
--> example-migration.sql:2:28
64
64
|
65
65
2 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
0 commit comments