Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoIncrementIncrement not work in postgres #7162

Open
sasakiyori opened this issue Aug 20, 2024 · 0 comments
Open

autoIncrementIncrement not work in postgres #7162

sasakiyori opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
type:with reproduction steps with reproduction steps

Comments

@sasakiyori
Copy link

sasakiyori commented Aug 20, 2024

GORM Playground Link

go-gorm/playground#756

Description

DB: PostgreSQL

type Book struct {
        // Whether `autoIncrementIncrement` is set or not, the increment step is always 1.
	BookID int    `gorm:"column:book_id;autoIncrement:true;autoIncrementIncrement:10"`
	Name   string `gorm:"column:name;type:varchar(255)"`
}
@github-actions github-actions bot added the type:with reproduction steps with reproduction steps label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:with reproduction steps with reproduction steps
Projects
None yet
Development

No branches or pull requests

2 participants