We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go-gorm/playground#753
Upgrading to 1.25.11 caused an error on migration that was working before:
1.25.11
type Author struct { ID string `gorm:"primaryKey"` Books []Book `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;unique"` } type Book struct { ID string `gorm:"primaryKey"` AuthorID string } func TestGORM(t *testing.T) { DB.AutoMigrate(&Author{}, &Book{}) }
2024/07/23 13:17:59 /home/fabio/dev/gorm-bug/main.go:31 ERROR: unterminated quoted identifier at or near ""))" (SQLSTATE 42601) [0.243ms] [rows:0] CREATE TABLE "authors" ("id" text,PRIMARY KEY ("id"),CONSTRAINT "uni_authors_" UNIQUE ("))
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
GORM Playground Link
go-gorm/playground#753
Description
Upgrading to
1.25.11
caused an error on migration that was working before:The text was updated successfully, but these errors were encountered: