fix: uuid ossp

This commit is contained in:
a631807682 2022-05-06 17:53:28 +08:00
parent 20b8cea93f
commit 722c301777
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -680,6 +680,8 @@ func TestPrimarykeyID(t *testing.T) {
t.Fatalf("DropTable err:%v", err)
}
DB.Exec(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`)
err = DB.AutoMigrate(&MissPKUser{}, &MissPKLanguage{})
if err != nil {
t.Fatalf("AutoMigrate err:%v", err)