Skip to content

Commit 5f3ee81

Browse files
authored
Merge pull request #1 from ytake/feature/changed-bytea
changed bytea
2 parents 9ca7211 + e511fef commit 5f3ee81

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: golangci-lint
2+
env:
3+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
24
on:
35
push:
46
branches:
@@ -16,9 +18,9 @@ jobs:
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

.golangci.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,38 @@
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
}

schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,"+

testdata/docker/pg/initdb.d/create.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CREATE DATABASE sample;
44
CREATE 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
1616
CREATE 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,

0 commit comments

Comments
 (0)