- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for uniqueName (0.07 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 Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Mar 09 09:31:28 UTC 2024 - 10.6K 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 Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Apr 26 07:15:49 UTC 2024 - 29K bytes - Viewed (0)