Skip to content

Commit

Permalink
changed bytea
Browse files Browse the repository at this point in the history
  • Loading branch information
ytake committed Oct 29, 2024
1 parent 9ca7211 commit e511fef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: golangci-lint
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
on:
push:
branches:
Expand All @@ -16,9 +18,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21.6'
go-version: '1.23.1'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
version: v1.60
23 changes: 13 additions & 10 deletions .golangci.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,38 @@
]
},
"linters-settings": {
"govet": {
"check-shadowing": false
},
"gofmt": {
"simplify": false
}
},
"run": {
"skip-dirs": [
"vendor",
"tests"
],
"tests": false,
"timeout": "10m"
},
"issues": {
"exclude-rules": [
{
"linters": "govet",
"linters": [
"govet"
],
"text": "^(nilness|structtag)"
},
{
"linters": "revive",
"linters": [
"revive"
],
"text": "should have comment"
},
{
"linters": "revive",
"linters": [
"revive"
],
"text": "should be of the form"
}
],
"exclude-dirs": [
"vendor",
"tests"
]
}
}
2 changes: 1 addition & 1 deletion schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (d *DefaultSchema) CreateTable() []string {
for _, table := range tables {
createTables = append(createTables, "CREATE TABLE "+table+" ("+
d.ID()+" VARCHAR(26) NOT NULL,"+
d.Payload()+" JSONB NOT NULL,"+
d.Payload()+" BYTEA NOT NULL,"+
d.SequenceNumber()+" BIGINT,"+
d.ActorName()+" VARCHAR(255),"+
d.Created()+" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,"+
Expand Down
4 changes: 2 additions & 2 deletions testdata/docker/pg/initdb.d/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE DATABASE sample;
CREATE TABLE journals
(
id VARCHAR(26) NOT NULL,
payload JSONB NOT NULL,
payload BYTEA NOT NULL,
sequence_number BIGINT,
actor_name VARCHAR(255),
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
Expand All @@ -16,7 +16,7 @@ CREATE TABLE journals
CREATE TABLE snapshots
(
id VARCHAR(26) NOT NULL,
payload JSONB NOT NULL,
payload BYTEA NOT NULL,
sequence_number BIGINT,
actor_name VARCHAR(255),
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
Expand Down

0 comments on commit e511fef

Please sign in to comment.