Skip to content

Commit 4906c44

Browse files
fix: bird seq를 올바른 값으로 보정 (#160)
테스트 실패 덕분에 bird seq 값을 조정하지 않은 실수를 발견하였고 수정함
1 parent b2e382e commit 4906c44

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/resources/db/migration/V56__add_new_bird_jibbidulgi.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ INSERT INTO bird_habitat (id,bird_id,habitat_type) VALUES (nextval('bird_habitat
99

1010
-- bird_residency
1111
INSERT INTO bird_residency (id,bird_id,residency_type_id,rarity_type_id,month_bitmask) VALUES (nextval('bird_residency_seq'),603,(SELECT id FROM residency_type WHERE code='RESIDENT'),(SELECT id FROM rarity_type WHERE code='COMMON'),NULL);
12+
13+
-- bird_seq를 올바른 값으로 보정
14+
SELECT setval('bird_seq', (SELECT MAX(id) FROM bird));

0 commit comments

Comments
 (0)