Skip to content

#14 Fix Endorsements Open Default Value#15

Merged
b-at-neu merged 2 commits intodevfrom
copilot/fix-migration-mismatch-settings
Feb 14, 2026
Merged

#14 Fix Endorsements Open Default Value#15
b-at-neu merged 2 commits intodevfrom
copilot/fix-migration-mismatch-settings

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 14, 2026

The endorsementsOpen column has incorrect default constraint (false instead of true), mismatching the Prisma schema.

Root Cause

Migration 20260205181702 renamed endorsementsClosed to endorsementsOpen and inverted existing values, but didn't update the default constraint.

Changes

  • New migration sets DEFAULT true on settings.endorsementsOpen
ALTER TABLE "settings" ALTER COLUMN "endorsementsOpen" SET DEFAULT true;
Original prompt

This section details on the original issue you should resolve

<issue_title>Outstanding migration mismatch in settings</issue_title>
<issue_description>The settings table has a migration mismatch. The endorsementForm needs an additional migration to run in order to ensure the following:

-- AlterTable
ALTER TABLE "settings" ALTER COLUMN "endorsementsOpen" SET DEFAULT true;
</issue_description>

<agent_instructions>Issue number is #14</agent_instructions>

Comments on the Issue (you are @copilot in this section)

  • Fixes b-at-neu/senate-path#14

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
senate-path Ready Ready Preview, Comment Feb 14, 2026 6:17pm

Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix migration mismatch in settings table #14 Fix Endorsements Open Default Value Feb 14, 2026
Copilot AI requested a review from b-at-neu February 14, 2026 18:17
@b-at-neu b-at-neu marked this pull request as ready for review February 14, 2026 18:21
@b-at-neu b-at-neu merged commit 9d32faa into dev Feb 14, 2026
2 checks passed
@b-at-neu b-at-neu deleted the copilot/fix-migration-mismatch-settings branch February 14, 2026 18:21
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.

Outstanding migration mismatch in settings

2 participants