Skip to content

Fix index creation#4620

Merged
dartcafe merged 3 commits into
mainfrom
fix/index-creation
Apr 18, 2026
Merged

Fix index creation#4620
dartcafe merged 3 commits into
mainfrom
fix/index-creation

Conversation

@dartcafe
Copy link
Copy Markdown
Collaborator

@dartcafe dartcafe commented Apr 18, 2026

  • add guards to avoid db errors on attempts to recreate existing unique indices
  • same for FK constraints

fix #4619

Signed-off-by: dartcafe <github@dartcafe.de>
Signed-off-by: dartcafe <github@dartcafe.de>
Signed-off-by: dartcafe <github@dartcafe.de>
@dartcafe dartcafe added this to the 9.0.1 milestone Apr 18, 2026
@dartcafe dartcafe merged commit 0ab6f69 into main Apr 18, 2026
47 checks passed
@bmurphy-apescic
Copy link
Copy Markdown

This did not work, still got the same errors as before.

I used the following, which allowed for the app to be updated.

DROP INDEX uniq_shares;
DROP INDEX uniq_token;
DROP INDEX uniq_subscription;
DROP INDEX uniq_unprocessed;
DROP INDEX uniq_watch;
DROP INDEX uniq_preferences;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

postgresql: during Upgrade to version 9.0.0, there are multiple errors because of duplicate indices

2 participants