Skip to content

Conversation

Chise1
Copy link

@Chise1 Chise1 commented May 12, 2025

Explain your user case and expected results

type Change struct {
RecID int64 gorm:"column:recid;type:decimal(9,0);not null;autoIncrement:false" json:"recid"
}
我使用这种结构的时候,每次自动同步,都会打印日志:

 ALTER TABLE `changes` MODIFY COLUMN `recid` decimal(9,0) NOT NULL  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant