Skip to content

Duplicate index and foreign-key names refused at authoring; SqlLoweringSpec drops its unread strategy field - #30373

Merged
wmadden-electric merged 1 commit into
mainfrom
fts-follow-ups-literal-index-names-and-drop-lowering-strategy
Sep 22, 2026
Merged

wmadden-electric merged 1 commit into
mainfrom
fts-follow-ups-literal-index-names-and-drop-lowering-strategy

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Linked issue

n/a — follow-ups from #30348, which has no Linear ticket. Reviewer: if a ticket exists, add it to the title.

Skill update

n/a — no user-facing surface changes. fullTextIndex and constraints.index keep their signatures; the only visible difference is a type error that was always documented and never fired. SqlLoweringSpec.strategy is an extension-author surface; the deletion is recorded in upgrade-instructions/pending/sql-lowering-spec-drops-strategy/extension/instructions.md.

At a glance

const user = model('User', { fields }).sql(({ cols, constraints }) => ({
  table: 'user',
  indexes: [
    constraints.index([cols.email], { name: 'user_idx' }),
    constraints.index([cols.invitedById], { name: 'user_idx' }),
  ],
}));
expectTypeOf<IsNever<SqlSpecOf<typeof user>>>().toEqualTypeOf<true>();

Before this PR that model typechecked. The sql() stage's duplicate-name check existed, but every name it compared had already widened to string.

Decision

Two follow-ups from the full-text search PR, both small:

  1. Duplicate literal names on indexes and foreign keys are refused at the type level, as the sql() stage was always meant to do. The fix is const Name on the constraints.index, constraints.foreignKey and fullTextIndex signatures, so the literal survives contextual typing inside sql().
  2. SqlLoweringSpec.strategy is deleted. Nothing read it. The template alone drives lowering.

Reviewer notes

  • The earlier diagnosis was wrong, and this PR does not widen ValidateSqlStageSpec. The follow-up note from Postgres full-text search operations and a typed @@fullTextIndex, owned by the target pack #30348 guessed the check failed because IndexConstraint.name is optional. It is not: NamedConstraintLiteralName already strips undefined. The real cause is that constraints.index(..., { name: 'x' }) inside sql(callback) or sql({...}) is contextually typed by SqlStageSpec, whose indexes are IndexConstraint<readonly string[], string | undefined>, and that return-type inference widened Name to string. A const type parameter stops the widening. The same thing happened to fullTextIndex, whose own test-d file had documented the check as dead. That comment is gone and the file now asserts the rejections.
  • Runtime does not catch this case, and that is by design. name is a wire-name prefix; the storage validator compares wire names after the content hash is appended, so two indexes with the same prefix but different columns get different physical names. The type-level check is the only place a reused authored name is refused. map: duplicates are exact physical names and the runtime validator already rejects them.
  • unique names are still not covered. constraints.unique has no Name type parameter at all, so a unique constraint reusing an index name passes the type check. Out of scope here; noted as a follow-up.
  • The strategy deletion touches 30 files but is one mechanical edit: the field is removed from the interface, from every descriptor literal, from tests that set or asserted it, and from the ADR 203 example. git diff --stat is the whole story.
  • A literal NUL byte is committed in packages/2-sql/1-core/contract/src/validators.ts (a key separator inside a template string in validateTableScopedEntryNames). Pre-existing, not touched here, but grep treats the file as binary, which cost time while investigating. Worth replacing with an escape sequence separately.

How it fits together

  1. The check already existed. ValidateSqlStageSpec in packages/2-sql/2-authoring/contract-ts/src/contract-dsl.ts walks the tuple of indexes and foreignKeys, collects literal names, and resolves the model's sql spec to never on a repeat or on a collision with the primary key name.
  2. The names never reached it as literals. Each helper's Name parameter widened to string under contextual typing, so the collected set was string and never repeated.
  3. const Name keeps the literal. Four signatures in contract-dsl.ts (index overloads and the PackAwareIndex twin), two foreignKey overloads, and fullTextIndex in packages/3-extensions/postgres/src/contract/full-text-index.ts.
  4. Type tests pin both directions. contract-builder.duplicate-names.test-d.ts covers index/index, expression-index/index, index/primary-key, and foreign-key/foreign-key, plus the accepted distinct-name case. full-text-index.test-d.ts covers fullTextIndex/fullTextIndex and fullTextIndex/constraints.index.
  5. strategy goes. Removed from SqlLoweringSpec in packages/2-sql/1-core/operations/src/index.ts and from every site that set it. The extension upgrade fragment tells extension authors to delete the line.

Behavior changes & evidence

Testing performed

  • pnpm typecheck:packages: all tasks pass.
  • pnpm lint and pnpm lint:throws: pass.
  • pnpm test:packages: 17848 pass. Two files failed in the full run under machine load, driver.buffered-release.integration.test.ts (connection timeout) and render-typescript.roundtrip.test.ts (8s timeout); both pass when rerun alone and neither touches this change.

Follow-ups

  • The remaining items from the Postgres full-text search operations and a typed @@fullTextIndex, owned by the target pack #30348 note, evaluated: multi-column weighted search and prefix matching are real slices and stay open. The "insert into a renamed column throws" bug did not reproduce: keyed by storage column name (post_id, invited_by_id) the builder binds codecs correctly, and keyed by field name (postId) is a type error. The only way to reach the lowering error is to cast past the row type. A clearer build-time error for unknown column keys would be a small hardening, not a bug fix.
  • constraints.unique names are outside the duplicate-name check.
  • The NUL byte in validators.ts.

Alternatives considered

  • Widening ValidateSqlStageSpec to accept Name | undefined, as the follow-up note suggested. It already does; the change would have been a no-op.
  • Checking duplicate name prefixes at runtime. Rejected: the runtime validator deliberately compares wire names after hashing, and two indexes with the same prefix are physically distinct. Adding a prefix check there would have to special-case authored names against inferred ones for no runtime benefit.
  • Keeping strategy as documentation of infix vs function lowering. Rejected: the template already shows which it is, and a field nothing reads is a field that drifts.

Checklist

Notes for the reviewer

See Reviewer notes above.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Changes

    • Simplified SQL operation configuration by removing the explicit lowering strategy field; SQL rendering behavior remains unchanged.
    • Constraint names supplied as literals are now preserved more accurately during type checking.
    • Duplicate names across indexes, foreign keys, primary keys, and full-text indexes are now rejected during contract validation.
  • Documentation

    • Added upgrade guidance for updating SQL lowering configurations to the simplified format.
  • Tests

    • Expanded coverage for duplicate constraint-name validation and updated SQL lowering expectations.

…weringSpec drops its unread strategy field

The sql() stage of the TypeScript contract builder has always carried a type-level check that refuses a model whose named storage objects reuse a literal name. It never fired for constraints.index, constraints.foreignKey or the Postgres fullTextIndex helper, because each helper's Name type parameter widened to string once the call sat inside sql()'s contextually typed spec. The check compared string against string and found no duplicates.

Declaring Name as a const type parameter on those signatures keeps the literal, so the existing check now works: two indexes named the same, an index reusing the primary key name, two foreign keys named the same, and a fullTextIndex colliding with a constraints.index all resolve to a builder whose sql spec is never. Type tests in sql-contract-ts and the Postgres extension pin both the rejections and the accepted distinct-name case.

SqlLoweringSpec.strategy ('infix' | 'function') was set by every operation descriptor and read by nothing; the template alone drives lowering. The field is removed from the interface and from every descriptor, test and ADR example that set it. An upgrade fragment for extension authors records the deletion.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner September 22, 2026 10:11
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: prisma/orm/.coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: 9f2f0a28-0ca0-4e81-a340-22e990f1a059

📥 Commits

Reviewing files that changed from the base of the PR and between ebfc118 and 18a2593.

📒 Files selected for processing (38)
  • docs/architecture docs/adrs/ADR 203 - Trait-targeted operation arguments.md
  • packages/2-sql/1-core/operations/src/index.ts
  • packages/2-sql/2-authoring/contract-ts/src/contract-dsl.ts
  • packages/2-sql/2-authoring/contract-ts/test/contract-builder.duplicate-names.test-d.ts
  • packages/2-sql/4-lanes/relational-core/src/contract-free/table.ts
  • packages/2-sql/4-lanes/relational-core/src/types.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/common.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/rich-ast.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/test-helpers.ts
  • packages/2-sql/4-lanes/relational-core/test/contract-free/expr-select.test.ts
  • packages/2-sql/4-lanes/relational-core/test/expression.test.ts
  • packages/2-sql/4-lanes/relational-core/test/expression/create-raw-sql.test-d.ts
  • packages/2-sql/4-lanes/relational-core/test/expression/create-raw-sql.test.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/functions.test.ts
  • packages/3-extensions/paradedb/src/core/descriptor-meta.ts
  • packages/3-extensions/paradedb/src/core/proximity-chain.ts
  • packages/3-extensions/paradedb/test/operations.test.ts
  • packages/3-extensions/pgvector/src/core/descriptor-meta.ts
  • packages/3-extensions/pgvector/test/operation-lowering.test.ts
  • packages/3-extensions/pgvector/test/operations.test.ts
  • packages/3-extensions/pgvector/test/rich-adapter.test.ts
  • packages/3-extensions/postgis/src/core/descriptor-meta.ts
  • packages/3-extensions/postgis/test/operations.test.ts
  • packages/3-extensions/postgres/src/contract/full-text-index.ts
  • packages/3-extensions/postgres/test/contract-builder/full-text-index.test-d.ts
  • packages/3-extensions/sql-orm-client/test/collection.state.test.ts
  • packages/3-extensions/sql-orm-client/test/prepared-predicates.test.ts
  • packages/3-extensions/sql-orm-client/test/query-plan-aggregate.test.ts
  • packages/3-extensions/sql-orm-client/test/query-plan-select.test.ts
  • packages/3-extensions/sql-orm-client/test/where-binding.test.ts
  • packages/3-targets/3-targets/postgres/src/core/query-operations.ts
  • packages/3-targets/3-targets/postgres/test/migrations/verification-checks.test.ts
  • packages/3-targets/3-targets/postgres/test/query-operations.test.ts
  • packages/3-targets/6-adapters/postgres/test/adapter-errors.test.ts
  • packages/3-targets/6-adapters/postgres/test/adapter.test.ts
  • packages/3-targets/6-adapters/postgres/test/raw-query-lowering.test.ts
  • packages/3-targets/6-adapters/sqlite/test/raw-query-lowering.test.ts
  • upgrade-instructions/pending/sql-lowering-spec-drops-strategy/extension/instructions.md
💤 Files with no reviewable changes (20)
  • packages/3-extensions/sql-orm-client/test/where-binding.test.ts
  • packages/3-extensions/paradedb/src/core/proximity-chain.ts
  • packages/3-extensions/pgvector/src/core/descriptor-meta.ts
  • packages/2-sql/4-lanes/relational-core/src/contract-free/table.ts
  • packages/3-extensions/pgvector/test/rich-adapter.test.ts
  • packages/3-extensions/postgis/test/operations.test.ts
  • packages/3-targets/6-adapters/postgres/test/adapter.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/common.test.ts
  • packages/3-extensions/paradedb/test/operations.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/test-helpers.ts
  • packages/2-sql/1-core/operations/src/index.ts
  • docs/architecture docs/adrs/ADR 203 - Trait-targeted operation arguments.md
  • packages/3-extensions/pgvector/test/operations.test.ts
  • packages/2-sql/4-lanes/relational-core/test/ast/rich-ast.test.ts
  • packages/3-extensions/sql-orm-client/test/query-plan-aggregate.test.ts
  • packages/2-sql/4-lanes/sql-builder/test/runtime/functions.test.ts
  • packages/3-extensions/paradedb/src/core/descriptor-meta.ts
  • packages/3-extensions/pgvector/test/operation-lowering.test.ts
  • packages/3-extensions/postgis/src/core/descriptor-meta.ts
  • packages/3-targets/3-targets/postgres/test/migrations/verification-checks.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

Changes

SQL contract and lowering updates

Layer / File(s) Summary
Constraint name literal inference
packages/2-sql/2-authoring/contract-ts/src/contract-dsl.ts, packages/3-extensions/postgres/src/contract/full-text-index.ts, packages/*/test/contract-builder/*
Constraint name type parameters now preserve string literals. Type-level tests verify duplicate index and foreign-key names resolve to never.
Lowering contract and descriptors
packages/2-sql/1-core/operations/src/index.ts, packages/2-sql/4-lanes/relational-core/*, packages/3-extensions/*, packages/3-targets/3-targets/postgres/*
The strategy field was removed from SqlLoweringSpec and operation descriptors. Existing templates and operation metadata remain.
Lowering fixtures and migration guidance
packages/2-sql/4-lanes/*/test/*, packages/3-extensions/*/test/*, packages/3-targets/*/test/*, upgrade-instructions/pending/*, docs/architecture docs/adrs/*
Tests, examples, and documentation now use lowering objects with targetFamily and template only. Migration instructions describe the removed field.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Suggested reviewers: sevinf, tensordreams

Merge Risk: ⚪ Minimal · up to 18a25

Duplicate constraint names are rejected during authoring, while SQL rendering retains its existing templates after removing unused metadata. The change is mergeable with normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 17 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes both primary changes: duplicate index and foreign-key names are rejected during authoring, and the unused SqlLoweringSpec.strategy field is removed.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 17 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Sep 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

@prisma/orm-extension-arktype-json

npm i https://pkg.pr.new/@prisma/orm-extension-arktype-json@30373

@prisma/orm-extension-middleware-cache

npm i https://pkg.pr.new/@prisma/orm-extension-middleware-cache@30373

@prisma/orm-extension-paradedb

npm i https://pkg.pr.new/@prisma/orm-extension-paradedb@30373

@prisma/orm-extension-pgvector

npm i https://pkg.pr.new/@prisma/orm-extension-pgvector@30373

@prisma/orm-extension-postgis

npm i https://pkg.pr.new/@prisma/orm-extension-postgis@30373

@prisma/orm-extension-supabase

npm i https://pkg.pr.new/@prisma/orm-extension-supabase@30373

@prisma/orm-family-mongo

npm i https://pkg.pr.new/@prisma/orm-family-mongo@30373

@prisma/orm-family-sql

npm i https://pkg.pr.new/@prisma/orm-family-sql@30373

@prisma/orm-framework

npm i https://pkg.pr.new/@prisma/orm-framework@30373

@prisma/orm-mongo

npm i https://pkg.pr.new/@prisma/orm-mongo@30373

@prisma/orm-postgres

npm i https://pkg.pr.new/@prisma/orm-postgres@30373

@prisma/orm-sqlite

npm i https://pkg.pr.new/@prisma/orm-sqlite@30373

@prisma/orm-target-mongo

npm i https://pkg.pr.new/@prisma/orm-target-mongo@30373

@prisma/orm-target-postgres

npm i https://pkg.pr.new/@prisma/orm-target-postgres@30373

@prisma/orm-target-sqlite

npm i https://pkg.pr.new/@prisma/orm-target-sqlite@30373

@prisma/orm-toolchain

npm i https://pkg.pr.new/@prisma/orm-toolchain@30373

commit: 18a2593

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
postgres / no-emit 193.75 KB (-0.02% 🔽)
postgres / emit 165.36 KB (-0.02% 🔽)
mongo / no-emit 109.76 KB (0%)
mongo / emit 92.12 KB (0%)
cf-worker / no-emit 216.44 KB (-0.02% 🔽)
cf-worker / emit 185.07 KB (-0.02% 🔽)

@wmadden-electric
wmadden-electric added this pull request to the merge queue Sep 22, 2026
Merged via the queue into main with commit 0d0bf8d Sep 22, 2026
26 checks passed
@wmadden-electric
wmadden-electric deleted the fts-follow-ups-literal-index-names-and-drop-lowering-strategy branch September 22, 2026 12:50
wmadden pushed a commit to veksa/prisma that referenced this pull request Sep 24, 2026
…in the duplicate-name check (prisma#30387)

## Linked issue

n/a — small change. Completes the consistency fix
[prisma#30373](prisma#30373) started for indexes
and foreign keys.

## Skill update

n/a — internal only. No new API; a mistake that already should have been
a type error now is one.

## At a glance

```ts
model('User', { fields }).attributes(({ fields, constraints }) => ({
  uniques: [constraints.unique([fields.email], { name: 'user_email_key' })],
})).sql(({ cols, constraints }) => ({
  table: 'user',
  indexes: [constraints.index([cols.email], { name: 'user_email_key' })],
}));
// before: typechecks. after: defineContract reports that two named objects share a name.
```

## Decision

Every named storage object on a model now takes part in the type-level
duplicate-name check, and a clash is now a compile error at
`defineContract`:

1. **All name sources are compared.** The primary key (inline or in
`.attributes()`), uniques (inline `.unique({ name })`, `field.sql({
unique })`, named presets, and `.attributes()`), indexes and foreign
keys in `.sql()`, and foreign keys declared on relations with
`belongsTo(...).sql({ fk: { name } })`. `constraints.unique` and
`constraints.id` gain a `const Name` type parameter so their names stay
literal. Names are grouped by where they come from, so two fields or two
relations reusing a name are caught, not merged in a union.
2. **The check now reaches the user.** Before this PR, a clash resolved
the model builder's spec to `never`, but `defineContract` accepted such
a model, so no error was ever shown. `ContractModelBuilder` now carries
a type-only `__duplicateNames` property, and every model entry point
requires it to be `undefined`. A clash reports: "two ids, uniques,
indexes or foreign keys on this model have the same name". This also
covers clashes no stage call sees, such as duplicate inline names on a
model with no `.sql()` call.

## Reviewer notes

- **`.attributes()` now validates on its return type, like `.sql()`.**
It used to validate its input. With the check on the input, TypeScript
could not infer the factory's result after `.sql()` had run, so no
attributes-stage name reached the check in that order. A clash there
used to surface as a call-site error; it now resolves the attributes
spec to `never`, which is how `.sql()` has always reported it.
- **One shared check.** `ValidateSqlStageSpec` and
`ValidateAttributesStageSpec` both call `HasDuplicateModelNames`, so the
two stages cannot disagree about what counts as a clash.
- **No runtime effect.** Authored names are wire-name prefixes with a
content hash appended, so a reused name never produced a physical
collision. This catches a copy-paste mistake at authoring time.
- **prisma#30373 claimed `defineContract` rejected a model whose spec was
`never`. It did not.** A review comment here caught it;
`@ts-expect-error` tests on `defineContract` were all reported unused
before this PR's second commit. So the check had never produced a
visible error until now.
- **This can surface a new compile error in an app** whose contract
really does reuse a name. No example or fixture in the repo does; `pnpm
typecheck` over all examples passes.
- **`check({ name })` and index `map:` are not in the check.** Both are
typed `string`, so they carry no literal. The runtime validator already
rejects duplicate `map:` names.

## Testing performed

- `packages/2-sql/2-authoring/contract-ts`: `pnpm typecheck`, `pnpm
lint`, `pnpm test` pass. Every new type test and `@ts-expect-error` case
was red before the change.
- Examples: `pnpm typecheck --filter='./examples/**'` passes.
- `pnpm typecheck:packages --concurrency=1`: pass. The parallel run is
flaky on `integration-tests` for a reason unrelated to this change; see
below.
- `pnpm check:upgrade-coverage --mode pr --prev main --head HEAD`: pass.

## Follow-ups

- `integration-tests#typecheck` typechecks `test/cli-journeys/**`, which
imports `@prisma/orm-postgres`, but `integration-tests` declares no
dependency on that package. Turbo therefore has no edge and can run the
typecheck while tsdown is rewriting the package's `dist`, giving
spurious `TS2307 Cannot find module '@prisma/orm-postgres/…'` errors.
The fix is a declared dependency from `integration-tests` to
`@prisma/orm-postgres`.

## Checklist

- [x] All commits are signed off (`git commit -s`) per the
[DCO](../CONTRIBUTING.md#developer-certificate-of-origin-dco).
- [x] I read [CONTRIBUTING.md](../CONTRIBUTING.md) and the change is
scoped to one logical concern.
- [x] Tests are updated.
- [ ] The PR title is in `TML-NNNN: <sentence-case title>` form — no
ticket.
- [x] The **Skill update** section above is filled in.

## Notes for the reviewer

See **Reviewer notes** above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Duplicate names are now detected across unique constraints, primary
keys, indexes, and foreign keys, regardless of authoring stage.
* Checks include names declared inline on fields and relations, as well
as names declared in attributes and SQL stages.
* Duplicate-name errors are surfaced through type checking in model
builders and contract definitions. Distinct names remain valid across
stages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants