Skip to content

fix: correct operator class for UUID column in ProjectTranscript unique index#409

Merged
younes200 merged 2 commits intoupgrade-nextjsfrom
copilot/sub-pr-400
Mar 19, 2026
Merged

fix: correct operator class for UUID column in ProjectTranscript unique index#409
younes200 merged 2 commits intoupgrade-nextjsfrom
copilot/sub-pr-400

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 19, 2026

The initial migration (0000_initial.sql) was failing on fresh database setup because ProjectTranscript_projectId_language_key used text_ops for projectId, which is a uuid column — PostgreSQL rejects this mismatch.

Changes

  • 0000_initial.sql: Change operator class for projectId from text_opsuuid_ops in the unique index
  • meta/0000_snapshot.json: Update snapshot to match corrected operator class
-- Before (broken)
CREATE UNIQUE INDEX "ProjectTranscript_projectId_language_key"
  ON "ProjectTranscript" USING btree ("projectId" text_ops, "language" text_ops);

-- After (fixed)
CREATE UNIQUE INDEX "ProjectTranscript_projectId_language_key"
  ON "ProjectTranscript" USING btree ("projectId" uuid_ops, "language" text_ops);

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: younes200 <198514+younes200@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade Next.js fix: correct operator class for UUID column in ProjectTranscript unique index Mar 19, 2026
@younes200 younes200 marked this pull request as ready for review March 19, 2026 15:57
@younes200 younes200 merged commit 5eb2b22 into upgrade-nextjs Mar 19, 2026
1 check passed
Copilot stopped work on behalf of younes200 due to an error March 19, 2026 15:57
@younes200 younes200 deleted the copilot/sub-pr-400 branch March 19, 2026 15:57
Copilot AI requested a review from younes200 March 19, 2026 16:00
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