File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
)
28
28
29
29
const errMessageNoVersion = `The configuration file must have a version number.
30
- Set the version to 1 at the top of sqlc.json:
30
+ Set the version to 1 or 2 at the top of sqlc.json:
31
31
32
32
{
33
33
"version": "1"
@@ -36,7 +36,7 @@ Set the version to 1 at the top of sqlc.json:
36
36
`
37
37
38
38
const errMessageUnknownVersion = `The configuration file has an invalid version number.
39
- The only supported version is "1 ".
39
+ The supported version can only be "1" or "2 ".
40
40
`
41
41
42
42
const errMessageNoPackages = `No packages are configured`
Original file line number Diff line number Diff line change @@ -10,21 +10,6 @@ import (
10
10
yaml "gopkg.in/yaml.v3"
11
11
)
12
12
13
- const errMessageNoVersion = `The configuration file must have a version number.
14
- Set the version to 1 at the top of sqlc.json:
15
-
16
- {
17
- "version": "1"
18
- ...
19
- }
20
- `
21
-
22
- const errMessageUnknownVersion = `The configuration file has an invalid version number.
23
- The only supported version is "1".
24
- `
25
-
26
- const errMessageNoPackages = `No packages are configured`
27
-
28
13
type versionSetting struct {
29
14
Number string `json:"version" yaml:"version"`
30
15
}
You can’t perform that action at this time.
0 commit comments