fix(migration): Avoid unique constraint violation
Compare changes
Created by: Tirokk
Authored by roschaefer Merged
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 If you create the unique index first, it's doing fine.yarn run db:migrate up
on production data on my machine and in docker the migration takes way too much time.