Skip to content

[Bug Report] Database Migration Failure #5494

Answered by WithoutPants
lynsix asked this question in Q&A
Discussion options

You must be logged in to vote

This appears to be a corruption in your database caused by the post-migration for schema version 42 not apparently running. As a result, it's allowed duplicate performer names to be created in your system. These performers will need to be renamed manually before you can migrate your system to the latest version (which will add the missing unique constraints as well).

You should be able to get the duplicate performers with the following graphql query, which can be run using <server>:<port>/playground:

mutation {
  querySQL(sql: """
SELECT id, name, COUNT(*)
FROM
    performers
WHERE disambiguation IS NULL
GROUP BY
    name
HAVING 
    COUNT(*) > 1
""") {
    columns
    rows
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lynsix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug report Bug reports that are not yet verified
2 participants
Converted from issue

This discussion was converted from issue #5478 on November 21, 2024 03:14.