Skip to content

Commit 8b912fa

Browse files
authoredMar 21, 2025
Merge pull request #50 from Breeding-Insight/bug/BI-2585
[BI-2585] BJTS migration fail due to DB field name change
2 parents ad05e37 + 4e6b7d1 commit 8b912fa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎src/main/resources/db/sql/R__init_data_16_pedigree.sql

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ INSERT INTO pedigree_node (auth_user_id, id, crossing_year, family_code, pedigre
22
INSERT INTO pedigree_node (auth_user_id, id, crossing_year, family_code, pedigree_string, crossing_project_id, germplasm_id) VALUES('anonymousUser', 'pedigree2', 2001, 'FAKEFAM', 'A2342345/A4564565', 'crossing_project1', 'germplasm2');
33
INSERT INTO pedigree_node (auth_user_id, id, crossing_year, family_code, pedigree_string, crossing_project_id, germplasm_id) VALUES('anonymousUser', 'pedigree3', 2002, 'FAKEFAM', 'A0000001/A0000002', 'crossing_project1', 'germplasm3');
44

5-
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connceted_node_id) VALUES('p1_parent_p3', 0, 0, 'pedigree3', 'pedigree1');
6-
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connceted_node_id) VALUES('p3_child_p1', 1, 0, 'pedigree1', 'pedigree3');
7-
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connceted_node_id) VALUES('p2_parent_p3', 0, 1, 'pedigree3', 'pedigree2');
8-
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connceted_node_id) VALUES('p3_child_p2', 1, 1, 'pedigree2', 'pedigree3');
9-
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connceted_node_id) VALUES('p1_sibling_p2', 2, null, 'pedigree1', 'pedigree2');
10-
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connceted_node_id) VALUES('p2_sibling_p1', 2, null, 'pedigree2', 'pedigree1');
5+
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connected_node_id) VALUES('p1_parent_p3', 0, 0, 'pedigree3', 'pedigree1');
6+
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connected_node_id) VALUES('p3_child_p1', 1, 0, 'pedigree1', 'pedigree3');
7+
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connected_node_id) VALUES('p2_parent_p3', 0, 1, 'pedigree3', 'pedigree2');
8+
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connected_node_id) VALUES('p3_child_p2', 1, 1, 'pedigree2', 'pedigree3');
9+
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connected_node_id) VALUES('p1_sibling_p2', 2, null, 'pedigree1', 'pedigree2');
10+
INSERT INTO pedigree_edge (id, edge_type, parent_type, this_node_id, connected_node_id) VALUES('p2_sibling_p1', 2, null, 'pedigree2', 'pedigree1');

‎src/main/resources/sql/create_indexes.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- Indexes to improve read performance of Germplasm operations.
22
CREATE INDEX CONCURRENTLY IF NOT EXISTS "pedigree_edge_this_node_id" ON pedigree_edge (this_node_id);
3-
CREATE INDEX CONCURRENTLY IF NOT EXISTS "pedigree_edge_connected_node_id" ON pedigree_edge (connceted_node_id);
3+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "pedigree_edge_connected_node_id" ON pedigree_edge (connected_node_id);
44
CREATE INDEX CONCURRENTLY IF NOT EXISTS "pedigree_edge_edge_type" ON pedigree_edge (edge_type);
55
CREATE INDEX CONCURRENTLY IF NOT EXISTS "program_external_references_program_entity_id" ON program_external_references (program_entity_id);
66
CREATE INDEX CONCURRENTLY IF NOT EXISTS "external_reference_composite" ON external_reference (external_reference_source, external_reference_id);

0 commit comments

Comments
 (0)