Skip to content

Commit

Permalink
fix: precaution: don't autoincrement guild id primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
myrkvi committed Jul 10, 2024
1 parent 720956f commit 1e320ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/guild_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

type GuildSettings struct {
GuildID snowflake.ID `gorm:"primaryKey"`
GuildID snowflake.ID `gorm:"primaryKey;autoIncrement:false"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`

// ModeratorChannel is the channel where notifications and other
Expand Down

0 comments on commit 1e320ed

Please sign in to comment.