Combine uuid-old and uuid branch changes

- Switch to binary 16 for UUID keys
- Remove AccountScopedRecord base class, all model use binary uuids now
- Fix the search sql to serialize uuids properly
- Patch the MySQL schema dumper to output binary lengths
This commit is contained in:
Donal McBreen
2025-11-12 16:42:34 +00:00
committed by Mike Dalessio
parent 05a7ec84e2
commit fc56ad9d7c
52 changed files with 513 additions and 390 deletions
+3 -2
View File
@@ -136,9 +136,10 @@ module FixturesTestHelper
bytes[14] = (rand_b >> 8) & 0xff
bytes[15] = rand_b & 0xff
# Format as UUID string
# Format as UUID string and convert to base36 (25 chars)
uuid = "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x" % bytes
UuidPrimaryKey.uuid_to_base36(uuid)
hex = uuid.delete("-")
hex.to_i(16).to_s(36).rjust(25, "0")
end
end
end