Drizzle 0.31.0 introduced a breaking change to the Postgres indexes API. The lack of support in drizzle-dbml-generator for enriched "extra config" columns led to two failure scenarios with the current build:
Unrecognised ordering options in extra config e.g. tbl.f1.asc() (asc() not found in standard column type)
Inability for the underlying drizzle-orm calls to use the indexes. JSON parsing would fail since the defaultConfig on a given column wasn't being set or enriched.
What has changed
Update drizzle-orm dev-dependency to the latest version (0.31.1)
Extract richer / correct extra config for columns via a new ExtraConfigColumns symbol. This is specific to Postgres but functionally works in a dialect-agnostic way.
Re-word extraConfig → extraConfigBuilder to make language clearer and more accurate
Drizzle 0.31.0 introduced a breaking change to the Postgres indexes API. The lack of support in
drizzle-dbml-generator
for enriched "extra config" columns led to two failure scenarios with the current build:tbl.f1.asc()
(asc()
not found in standard column type)drizzle-orm
calls to use the indexes. JSON parsing would fail since thedefaultConfig
on a given column wasn't being set or enriched.What has changed
drizzle-orm
dev-dependency to the latest version (0.31.1
)ExtraConfigColumns
symbol. This is specific to Postgres but functionally works in a dialect-agnostic way.extraConfig
→extraConfigBuilder
to make language clearer and more accurateresolves #12