GORM Playground Link

https://github.com/go-gorm/playground/pull/753

Description

Upgrading to 1.25.11 caused an error on migration that was working before:

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 ("))