Skip to content

Add files via upload - #5

Open
anthonylipscomb wants to merge 1 commit into
mainfrom
t/antlip/update-sql
Open

Add files via upload#5
anthonylipscomb wants to merge 1 commit into
mainfrom
t/antlip/update-sql

Conversation

@anthonylipscomb

@anthonylipscomb anthonylipscomb commented Nov 5, 2025

Copy link
Copy Markdown
Owner

Note

Adds Visible and a uniqueness constraint to Events, expands locations/event names, and bulk-inserts new 2025 events, contests, competitors, and results with corresponding fixes.

  • Schema:
    • Events: add Visible (default 1) and unique key unique_event on (EventNameID,EventLocationID,EventDate).
    • Bump AUTO_INCREMENT for EventLocations, EventNames, Events, Contests, Competitors, Results.
  • Reference Data:
    • EventLocations: add Boise, ID and Petitions.
    • EventNames: add Center Stage Country Swing, Nashville Dance Fest, Petitions, Paradise Country Dance Festival.
  • Data Loads/Updates:
    • Events: migrate inserts to include Visible; add numerous 2025 events (incl. a hidden petition entry).
    • Contests: append contests for new events.
    • Competitors: correct name/id (record 829), remove duplicate 1202, and add new competitors (19972084).
    • Results: update references (e.g., use CompetitorID 829 instead of 1202) and insert extensive new result rows (50005384).
  • Meta:
    • Update export timestamp.

Written by Cursor Bugbot for commit bbb8dd7. This will update automatically on new commits. Configure here.

@anthonylipscomb anthonylipscomb self-assigned this Nov 5, 2025

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread sql/ctst.sql
('5052', '833', '2', '4', '268'),
('5053', '833', '3', '3', '1221'),
('5054', '833', '4', '2', '1068'),
('5055', '833', '5', '0', '1221'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate Competitor ID in Same Contest

Duplicate CompetitorID '1221' appears twice in the same contest (ContestID '833'). Result entries 5053 and 5055 both reference CompetitorID '1221', which means the same competitor is listed in both 3rd place (Result=3) and 5th place (Result=5) of the same contest. This is logically impossible and indicates a data entry error.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5063', '834', '4', '2', '420'),
('5064', '834', '5', '1', '453'),
('5065', '834', '6', '0', '931'),
('5066', '834', '7', '0', '112'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate Competitor IDs in Same Contest

Duplicate CompetitorIDs appear in contest '834'. CompetitorID '796' appears in both 2nd place (Result=2, entry 5061) and 3rd place (Result=3, entry 5062). CompetitorID '112' appears in both 1st place (Result=1, entry 5060) and 7th place (Result=7, entry 5066). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5200', '855', '4', '0', '825'),
('5201', '855', '5', '0', '158'),
('5202', '855', '6', '0', '1965'),
('5203', '855', '7', '0', '825'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate CompetitorIDs in Contest Entries

Duplicate CompetitorIDs in contest '855'. CompetitorID '583' appears twice (entries 5197 and 5198 in 1st and 2nd place), and CompetitorID '825' appears twice (entries 5200 and 5203 in 4th and 7th place). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5233', '859', '4', '2', '1221'),
('5234', '859', '5', '1', '1853'),
('5235', '859', '6', '0', '1804'),
('5236', '859', '7', '0', '1315'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate Competitor IDs in Same Contest

Duplicate CompetitorID '376' appears three times in contest '858' (entries 5225, 5228, and 5230 in 4th, 7th, and 8th places). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5243', '860', '6', '0', '115'),
('5244', '860', '7', '0', '125'),
('5245', '860', '8', '0', '125'),
('5246', '860', '9', '0', '931'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate Competitor in One Contest Top Placements

Duplicate CompetitorID '1573' appears twice in contest '859' (entries 5230 and 5231 in 1st and 2nd places). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5268', '862', '3', '3', '1890'),
('5269', '862', '4', '2', '2062'),
('5270', '862', '5', '1', '2033'),
('5271', '862', '6', '0', '2045'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate CompetitorID in Single Contest Seats Duplicate CompetitorID in Contest

Duplicate CompetitorID '583' appears twice in contest '861' (entries 5253 and 5257 in 6th and 10th places). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5324', '867', '7', '1', '227'),
('5325', '869', '7', '0', '931'),
('5326', '871', '7', '0', '257'),
('5327', '866', '7', '1', '2080'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate Competitor IDs in Single Contest Entries

Duplicate CompetitorID '1573' appears twice in contest '845' (entries 5128 and 5130 in 1st and 3rd places), and CompetitorID '194' appears twice (entries 5129 and 5131 in 2nd and 4th places), and CompetitorID '1805' appears twice (entries 5132 and 5133 in 5th and 6th places). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5381', '873', '5', '0', '1874'),
('5382', '874', '5', '1', '2024'),
('5383', '873', '6', '0', '2076'),
('5384', '874', '6', '0', '2084');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate Competitor IDs within same contests

Multiple duplicate CompetitorIDs across contests '871' and '872'. CompetitorID '1833' appears three times in contest '872' (entries 5289, 5290, 5298), CompetitorID '934' appears three times in contest '872' (entries 5306, 5312, 5360), CompetitorID '1654' appears three times in contest '872' (entries 5322, 5356, 5362), CompetitorID '1840' appears twice in contest '872' (entries 5338, 5346), and CompetitorID '2078' appears twice in contest '872' (entries 5314, 5330). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5381', '873', '5', '0', '1874'),
('5382', '874', '5', '1', '2024'),
('5383', '873', '6', '0', '2076'),
('5384', '874', '6', '0', '2084');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate CompetitorIDs in Single Contest Across Entries

Multiple duplicate CompetitorIDs in contest '873'. CompetitorID '2076' appears three times (entries 5361, 5373, 5383), and CompetitorID '1874' appears three times (entries 5367, 5377, 5381). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

Comment thread sql/ctst.sql
('5381', '873', '5', '0', '1874'),
('5382', '874', '5', '1', '2024'),
('5383', '873', '6', '0', '2076'),
('5384', '874', '6', '0', '2084');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate CompetitorIDs in a single contest

Multiple duplicate CompetitorIDs in contest '875'. CompetitorID '376' appears three times (entries 5369, 5374, 5378). The same competitor cannot occupy multiple positions in the same contest.

Fix in Cursor Fix in Web

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.

1 participant