gorm/schema
Bennett Amodio f482f25c71
fix: deterministic index ordering when migrating (#7208)
Issue: We observed that, when creating a database based on the same
gORM schema multiple times, indexes could appear in different orders,
hurting determinism for use-cases like schema comparison.

In order to fix this, it's simple to switch the ParseIndexes function
to return a list of indices rather than a map, so the callers will
iterate in deterministic order.
2024-12-06 10:27:44 +08:00
..
callbacks_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
constraint.go chore: optimize `regEnLetterAndMidline` regular (#6908) 2024-03-18 15:33:54 +08:00
constraint_test.go refactor: distinguish between Unique and UniqueIndex (#6386) 2024-02-04 15:49:19 +08:00
field.go fix: duplicated preload (#6948) 2024-04-15 11:20:20 +08:00
field_test.go Add serializer support (#5078) 2022-02-19 17:02:53 +08:00
index.go fix: deterministic index ordering when migrating (#7208) 2024-12-06 10:27:44 +08:00
index_test.go fix: deterministic index ordering when migrating (#7208) 2024-12-06 10:27:44 +08:00
interfaces.go refactor: distinguish between Unique and UniqueIndex (#6386) 2024-02-04 15:49:19 +08:00
model_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
naming.go fix: strings.Title -> cases.Title bcs strings.Title library is deprecated (#6999) 2024-06-12 11:46:59 +08:00
naming_test.go max identifier length changed to 63 (#6337) 2023-05-30 10:00:48 +08:00
pool.go Remove shared sync pool for Scanner compatibility 2022-04-11 21:37:44 +08:00
relationship.go fix: strings.Title -> cases.Title bcs strings.Title library is deprecated (#6999) 2024-06-12 11:46:59 +08:00
relationship_test.go fix: duplicated preload (#6948) 2024-04-15 11:20:20 +08:00
schema.go fix map fields with clickhouse driver 2024-06-20 20:19:31 +08:00
schema_helper_test.go refactor: Resolve implicit memory aliasing in for loop (#6730) 2023-12-15 16:31:23 +08:00
schema_test.go fix map fields with clickhouse driver 2024-06-20 20:19:31 +08:00
serializer.go Allow to support other field types 2024-06-20 16:45:38 +08:00
utils.go fix schema GetIdentityFieldValuesMap interface or ptr (#6417) 2023-08-19 21:35:14 +08:00
utils_test.go Remove autoincrement tag for join table, close #3217 2020-07-31 18:19:25 +08:00