File tree Expand file tree Collapse file tree 4 files changed +21
-16
lines changed
testdata/docker/pg/initdb.d Expand file tree Collapse file tree 4 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 11name : golangci-lint
2+ env :
3+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE20 : true
24on :
35 push :
46 branches :
1618 - uses : actions/checkout@v3
1719 - uses : actions/setup-go@v4
1820 with :
19- go-version : ' 1.21.6 '
21+ go-version : ' 1.23.1 '
2022 cache : false
2123 - name : golangci-lint
22- uses : golangci/golangci-lint-action@v3
24+ uses : golangci/golangci-lint-action@v6
2325 with :
24- version : v1.54
26+ version : v1.60
Original file line number Diff line number Diff line change 1111 ]
1212 },
1313 "linters-settings" : {
14- "govet" : {
15- "check-shadowing" : false
16- },
1714 "gofmt" : {
1815 "simplify" : false
1916 }
2017 },
2118 "run" : {
22- "skip-dirs" : [
23- " vendor" ,
24- " tests"
25- ],
2619 "tests" : false ,
2720 "timeout" : " 10m"
2821 },
2922 "issues" : {
3023 "exclude-rules" : [
3124 {
32- "linters" : " govet" ,
25+ "linters" : [
26+ " govet"
27+ ],
3328 "text" : " ^(nilness|structtag)"
3429 },
3530 {
36- "linters" : " revive" ,
31+ "linters" : [
32+ " revive"
33+ ],
3734 "text" : " should have comment"
3835 },
3936 {
40- "linters" : " revive" ,
37+ "linters" : [
38+ " revive"
39+ ],
4140 "text" : " should be of the form"
4241 }
42+ ],
43+ "exclude-dirs" : [
44+ " vendor" ,
45+ " tests"
4346 ]
4447 }
4548}
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func (d *DefaultSchema) CreateTable() []string {
9090 for _ , table := range tables {
9191 createTables = append (createTables , "CREATE TABLE " + table + " (" +
9292 d .ID ()+ " VARCHAR(26) NOT NULL," +
93- d .Payload ()+ " JSONB NOT NULL," +
93+ d .Payload ()+ " BYTEA NOT NULL," +
9494 d .SequenceNumber ()+ " BIGINT," +
9595 d .ActorName ()+ " VARCHAR(255)," +
9696 d .Created ()+ " TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP," +
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ CREATE DATABASE sample;
44CREATE TABLE journals
55(
66 id VARCHAR (26 ) NOT NULL ,
7- payload JSONB NOT NULL ,
7+ payload BYTEA NOT NULL ,
88 sequence_number BIGINT ,
99 actor_name VARCHAR (255 ),
1010 created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP ,
@@ -16,7 +16,7 @@ CREATE TABLE journals
1616CREATE TABLE snapshots
1717(
1818 id VARCHAR (26 ) NOT NULL ,
19- payload JSONB NOT NULL ,
19+ payload BYTEA NOT NULL ,
2020 sequence_number BIGINT ,
2121 actor_name VARCHAR (255 ),
2222 created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP ,
You can’t perform that action at this time.
0 commit comments