Ignore conflicts on performers_galleries

This commit is contained in:
WithoutPants 2022-10-06 10:05:43 +11:00 committed by GitHub
parent 4c73f2f845
commit 55001ddcf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -386,7 +386,8 @@ INSERT INTO `performers_galleries_new`
SELECT
`performer_id`,
`gallery_id`
FROM `performers_galleries`;
FROM `performers_galleries` WHERE true
ON CONFLICT (`gallery_id`, `performer_id`) DO NOTHING;
DROP TABLE `performers_galleries`;
ALTER TABLE `performers_galleries_new` rename to `performers_galleries`;