KamoCRM

Unique_rowid() shim and non-public schemas in YugabyteDB

FeatureKlusterServices
Shipped
9 ஆகஸ்ட், 2026 அன்று 10:36 PM UTC
Author
Kamo
Commit
a6a4fa0

The shim is a sequence seeded at the production maximum plus a margin. The seed carries two requirements, not one: it must exceed every existing id or the first insert after cutover collides, and it must exceed 2^53 because ids above that serialize as strings and the API contracts already assume it. Verified: returns > 2^53 and > production max, 1000 calls all distinct, and `INT8 DEFAULT unique_rowid()` works verbatim as a column default -- which is the point, since it lets all 520 columnDefinition strings in the donotmodify shared library stay byte-for-byte unchanged. Also pre-creates the five non-public schemas. Hibernate does not create schemas unless hbm2ddl.create_namespaces=true, which KamoInitializerService does not set, so without these the same 34 tables would go missing again.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing