Skip to content

Commit 1f90d97

Browse files
Fix: state model
1 parent 4756a50 commit 1f90d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
type State struct {
1212
//nolint
1313
tableName struct{} `gorm:"-" bun:"-" pg:"dipdup_state" json:"-" comment:"Indexer state table"`
14-
bun.BaseModel `gorm:"-" pg:"-" bun:"table:dipdup_state" json:"-" comment:"Indexer state table"`
14+
bun.BaseModel `gorm:"-" pg:"-" bun:"dipdup_state" json:"-" comment:"Indexer state table"`
1515

16-
IndexName string `gorm:"primaryKey" pg:",pk" json:"index_name" comment:"Index name"`
16+
IndexName string `gorm:"primaryKey" pg:",pk" bun:",pk" json:"index_name" comment:"Index name"`
1717
IndexType string `json:"index_type" comment:"Index type"`
1818
Hash string `json:"hash" comment:"Current hash"`
1919
Timestamp time.Time `json:"timestamp" comment:"Current timestamp"`

0 commit comments

Comments
 (0)