Skip to content

Commit 1a74c91

Browse files
authored
Merge pull request #14 from Breeding-Insight/bug/BI-2817
Migration to create required global levels if they don't exist
2 parents eb009cb + 4c86b45 commit 1a74c91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Add rep and block global levels needed by DeltaBreed if they don't exist
2+
3+
INSERT INTO observation_unit_level_name (level_name, level_order)
4+
VALUES
5+
('rep', 3),
6+
('block', 4)
7+
ON CONFLICT (level_name) WHERE program_id IS NULL DO NOTHING;

0 commit comments

Comments
 (0)