Skip to content

Commit 2cf786b

Browse files
committed
fix(series): use autogenerated ids to prevent duplicate key violations on insertion later.
See cdb000e commit for details. Addressed to #1034
1 parent 2d02bb2 commit 2cf786b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/liquibase/sql/test-series-with-catalogs-numbers.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ INSERT INTO users(id, login, role, name, registered_at, activated_at, hash, salt
88

99
-- Used only in src/test/robotframework/series/creation/misc-user.robot
1010
INSERT INTO images(type) VALUES('PNG');
11-
INSERT INTO series(id, quantity, perforated, image_url, created_at, created_by, updated_at, updated_by) VALUES
12-
(1, 1, TRUE, '/image/1', NOW(), 4, NOW(), 4);
11+
INSERT INTO series(quantity, perforated, image_url, created_at, created_by, updated_at, updated_by) VALUES
12+
(1, TRUE, '/image/1', NOW(), 4, NOW(), 4);
1313

1414
INSERT INTO michel_catalog(code) VALUES('99');
1515
INSERT INTO series_michel_catalog(series_id, michel_id) SELECT 1, id FROM michel_catalog WHERE code = '99';

0 commit comments

Comments
 (0)