Skip to content

Commit 70559be

Browse files
authored
docs: update example output (#504)
1 parent 89ccdc7 commit 70559be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,42 +44,42 @@ warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitti
4444
--> example.sql:6:10
4545
|
4646
6 | "id" serial NOT NULL PRIMARY KEY,
47-
| ^^^^^^
47+
| ------
4848
|
4949
= help: Use 64-bit integer values instead to prevent hitting this limit.
5050
warning[prefer-identity]: Serial types make schema, dependency, and permission management difficult.
5151
--> example.sql:6:10
5252
|
5353
6 | "id" serial NOT NULL PRIMARY KEY,
54-
| ^^^^^^
54+
| ------
5555
|
5656
= help: Use Identity columns instead.
5757
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.
5858
--> example.sql:7:13
5959
|
6060
7 | "alpha" varchar(100) NOT NULL
61-
| ^^^^^^^^^^^^
61+
| ------------
6262
|
6363
= help: Use a `TEXT` field with a `CHECK` constraint.
6464
warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed.
6565
--> example.sql:10:1
6666
|
6767
10 | CREATE INDEX "field_name_idx" ON "table_name" ("field_name");
68-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68+
| ------------------------------------------------------------
6969
|
7070
= help: Use `CONCURRENTLY` to avoid blocking writes.
7171
warning[constraint-missing-not-valid]: By default new constraints require a table scan and block writes to the table while that scan occurs.
7272
--> example.sql:12:24
7373
|
7474
12 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
75-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75+
| --------------------------------------------------------
7676
|
7777
= help: Use `NOT VALID` with a later `VALIDATE CONSTRAINT` call.
7878
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.
7979
--> example.sql:12:28
8080
|
8181
12 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
82-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82+
| ----------------------------------------------------
8383
|
8484
= help: Create an index `CONCURRENTLY` and create the constraint using the index.
8585

docs/docs/quick_start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ warning[constraint-missing-not-valid]: By default new constraints require a tabl
5757
--> example-migration.sql:2:24
5858
|
5959
2 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
60-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60+
| --------------------------------------------------------
6161
|
6262
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.
6363
--> example-migration.sql:2:28
6464
|
6565
2 | ALTER TABLE table_name ADD CONSTRAINT field_name_constraint UNIQUE (field_name);
66-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66+
| ----------------------------------------------------
6767
|
6868
= help: Create an index CONCURRENTLY and create the constraint using the index.
6969

0 commit comments

Comments
 (0)