Skip to content

fix: to avoid uniqueness violation we try deleting and inserting#169

Merged
XtophB merged 1 commit into
developmentfrom
fix/168-db-uniqueness-violation
Jun 11, 2026
Merged

fix: to avoid uniqueness violation we try deleting and inserting#169
XtophB merged 1 commit into
developmentfrom
fix/168-db-uniqueness-violation

Conversation

@XtophB

@XtophB XtophB commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Context

This PR contains a fix to the DB uniqueness violation problem when creating a second snapshot.

Description

Currently the saving to the DB works once, the second creates a uniqueness violation. A simple fix would be to delete the old entry and reinsert it.

Changes in the code base

  • Delete the old entry and insert a fresh lobby entry.

Changes outside the code base

N/A

Additional information

N/A

@sonarqubecloud

Copy link
Copy Markdown

@the-only-queen-anna the-only-queen-anna left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Geht alles, danke!

@XtophB XtophB requested a review from tasaje1 June 11, 2026 19:06

@tasaje1 tasaje1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@XtophB XtophB merged commit 83af2b7 into development Jun 11, 2026
2 checks passed
@XtophB XtophB linked an issue Jun 11, 2026 that may be closed by this pull request
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.

Fix flipping cards

3 participants