Skip to content

Add unique constraint on stages name and festival_edition_id#28

Open
chiptus wants to merge 1 commit intomainfrom
claude/fix-csv-import-constraint-kDYYI
Open

Add unique constraint on stages name and festival_edition_id#28
chiptus wants to merge 1 commit intomainfrom
claude/fix-csv-import-constraint-kDYYI

Conversation

@chiptus
Copy link
Copy Markdown
Owner

@chiptus chiptus commented May 8, 2026

Summary

This migration adds a unique constraint to the stages table to ensure that stage names are unique within each festival edition.

Key Changes

  • Added a unique constraint stages_name_festival_edition_id_key on the combination of name and festival_edition_id columns in the stages table

Implementation Details

This constraint prevents duplicate stage names from being created for the same festival edition, while still allowing the same stage name to exist across different festival editions. This maintains data integrity and ensures consistent stage identification within each festival's context.

https://claude.ai/code/session_01DpTFYTgNZPgZCCD2YNQsot

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

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

Project Deployment Actions Updated (UTC)
upline Ready Ready Preview, Comment May 8, 2026 3:41pm

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