Skip to content
Snippets Groups Projects

fix(migration): Avoid unique constraint violation

Closed Hannes Heine requested to merge pr3303head into pr3303base

Created by: Tirokk

roschaefer Authored by roschaefer Merged


:cake: Pullrequest

Apparently we have posts or users which have the same imageUrl or avatar. If we create image nodes we will run into unique constraint violations when we try to create the unique index.

When I try to yarn run db:migrate up on production data on my machine and in docker the migration takes way too much time. If you create the unique index first, it's doing fine.

Issues

  • None

Todo

  • Check migration with image files (locally or on staging)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
Please register or sign in to reply