- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UniqueName (0.06 sec)
-
tests/table_test.go
} } }) } type mockUniqueNamingStrategy struct { UName string schema.NamingStrategy } func (a mockUniqueNamingStrategy) UniqueName(table, column string) string { return a.UName
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 12.7K bytes - Viewed (0) -
migrator/migrator.go
return m.RunWithValue(value, func(stmt *gorm.Statement) error { // We're currently only receiving boolean values on `Unique` tag, // so the UniqueConstraint name is fixed constraint := m.DB.NamingStrategy.UniqueName(stmt.Table, field.DBName) if unique && !field.Unique { return m.DB.Migrator().DropConstraint(value, constraint) } if !unique && field.Unique { return m.DB.Migrator().CreateConstraint(value, constraint)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Jun 06 02:35:01 UTC 2025 - 29.5K bytes - Viewed (0)