Skip to content

Commit a2a3655

Browse files
committed
Change artist id in t/sql/coverart.sql
The RebuildCoverArt test is currently failing with: # 23505 DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "artist_pkey" # DETAIL: Key (id)=(1) already exists. [for Statement "SET client_min_messages TO 'warning'; I'm not sure where the conflict arises (given that tests run in parallel). Changing the id should resolve it, at least.
1 parent 346e213 commit a2a3655

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/sql/coverart.sql

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
SET client_min_messages TO 'warning';
22

33
INSERT INTO artist (id, gid, name, sort_name)
4-
VALUES (1, 'a9d99e40-72d7-11de-8a39-0800200c9a66', 'Artist', 'Artist');
4+
VALUES (101, 'a9d99e40-72d7-11de-8a39-0800200c9a66', 'Artist', 'Artist');
55

6-
INSERT INTO artist_credit (id, name, artist_count) VALUES (1, 'Artist', 1);
6+
INSERT INTO artist_credit (id, name, artist_count) VALUES (101, 'Artist', 1);
77
INSERT INTO artist_credit_name (artist_credit, artist, name, position, join_phrase)
8-
VALUES (1, 1, 'Artist', 0, '');
8+
VALUES (101, 101, 'Artist', 0, '');
99

1010
INSERT INTO release_group (id, gid, name, artist_credit)
11-
VALUES (1, '3b4faa80-72d9-11de-8a39-0800200c9a66', 'Release #1', 1);
11+
VALUES (1, '3b4faa80-72d9-11de-8a39-0800200c9a66', 'Release #1', 101);
1212

1313
INSERT INTO release (id, gid, name, artist_credit, release_group)
14-
VALUES (1, 'f34c079d-374e-4436-9448-da92dedef3ce', 'Release #1', 1, 1);
14+
VALUES (1, 'f34c079d-374e-4436-9448-da92dedef3ce', 'Release #1', 101, 1);
1515

1616
INSERT INTO release (id, gid, name, artist_credit, release_group)
17-
VALUES (2, '7a906020-72db-11de-8a39-0800200c9a66', 'Release #2', 1, 1);
17+
VALUES (2, '7a906020-72db-11de-8a39-0800200c9a66', 'Release #2', 101, 1);
1818

1919
INSERT INTO url (id, gid, url)
2020
VALUES (1, 'd77b3930-2925-11df-8a39-0800200c9a66',

0 commit comments

Comments
 (0)