|
1 | 1 | --- |
2 | | -source: crates/cli/src/reporter.rs |
| 2 | +source: crates/squawk/src/reporter.rs |
3 | 3 | expression: "strip_ansi_codes(&String::from_utf8_lossy(&buff))" |
4 | 4 | --- |
5 | 5 | warning[adding-required-field]: Adding a new column that is `NOT NULL` and has no default value to an existing table effectively makes it required. |
6 | 6 | --> main.sql:2:30 |
7 | 7 | | |
8 | 8 | 2 | ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL; |
9 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 9 | + | --------------------------------- |
10 | 10 | | |
11 | 11 | = help: Make the field nullable or add a non-VOLATILE DEFAULT |
12 | 12 | warning[prefer-robust-stmts]: Missing `IF NOT EXISTS`, the migration can't be rerun if it fails part way through. |
13 | 13 | --> main.sql:2:30 |
14 | 14 | | |
15 | 15 | 2 | ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL; |
16 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | + | --------------------------------- |
17 | 17 | | |
18 | 18 | warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitting the max `int` limit. |
19 | 19 | --> main.sql:2:47 |
20 | 20 | | |
21 | 21 | 2 | ALTER TABLE "core_recipe" ADD COLUMN "foo" integer NOT NULL; |
22 | | - | ^^^^^^^ |
| 22 | + | ------- |
23 | 23 | | |
24 | 24 | = help: Use 64-bit integer values instead to prevent hitting this limit. |
25 | 25 | warning[adding-required-field]: Adding a new column that is `NOT NULL` and has no default value to an existing table effectively makes it required. |
26 | 26 | --> main.sql:3:24 |
27 | 27 | | |
28 | 28 | 3 | ALTER TABLE "core_foo" ADD COLUMN "bar" integer NOT NULL; |
29 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 29 | + | --------------------------------- |
30 | 30 | | |
31 | 31 | = help: Make the field nullable or add a non-VOLATILE DEFAULT |
32 | 32 | warning[prefer-robust-stmts]: Missing `IF NOT EXISTS`, the migration can't be rerun if it fails part way through. |
33 | 33 | --> main.sql:3:24 |
34 | 34 | | |
35 | 35 | 3 | ALTER TABLE "core_foo" ADD COLUMN "bar" integer NOT NULL; |
36 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | + | --------------------------------- |
37 | 37 | | |
38 | 38 | warning[prefer-bigint-over-int]: Using 32-bit integer fields can result in hitting the max `int` limit. |
39 | 39 | --> main.sql:3:41 |
40 | 40 | | |
41 | 41 | 3 | ALTER TABLE "core_foo" ADD COLUMN "bar" integer NOT NULL; |
42 | | - | ^^^^^^^ |
| 42 | + | ------- |
43 | 43 | | |
44 | 44 | = help: Use 64-bit integer values instead to prevent hitting this limit. |
45 | 45 |
|
|
0 commit comments