-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCRUM-4667 make AgmAgmAssociation live under the general AgmAssociati… (
#1816) * SCRUM-4667 make AgmAgmAssociation live under the general AgmAssociation load job * SCRUM-4667 fix renaming fallout * SCRUM-4667 removing individual bulkload tables entries * SCRUM-4667 fix sql query ordering * SCRUM-4667 fix review suggestions * SCRUM-4667 fix checkstyle * SCRUM-4667 fix test errors * SCRUM-4667 rename indexes and FK constraints * fix typo * more naming adjustments * rename FW scripts * SCRUM-4667 more FW script renaming
- Loading branch information
Showing
9 changed files
with
84 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/resources/db/migration/v0.38.0.31__agm_agm_association_loads_2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ALTER TABLE agmagmassociation | ||
add column | ||
agmAgmAssociationObject_id bigint | ||
; | ||
|
||
alter table agmagmassociation | ||
DROP agmassociationobject_id | ||
; | ||
|
||
delete | ||
from bulkscheduledload | ||
where id in (SELECT id | ||
FROM bulkload | ||
WHERE backendbulkloadtype = 'AGM_AGM_ASSOCIATION'); | ||
|
||
delete | ||
from bulkmanualload | ||
where id in (SELECT id | ||
FROM bulkload | ||
WHERE backendbulkloadtype = 'AGM_AGM_ASSOCIATION'); | ||
|
||
delete | ||
from bulkload | ||
WHERE group_id in (select id from bulkloadgroup where name = 'Direct (LinkML) AGM AGM Association Loads'); | ||
|
||
delete | ||
from bulkloadgroup | ||
where name = 'Direct (LinkML) AGM AGM Association Loads'; | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
src/main/resources/db/migration/v0.38.0.32__agm_agm_association_loads_2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE INDEX agmagmassociation_agmassocobject_in ON public.agmagmassociation USING btree (agmAgmAssociationObject_id); | ||
ALTER TABLE ONLY public.agmagmassociation ADD CONSTRAINT agmagmassociation_agmassociationobject_fk FOREIGN KEY (agmAgmAssociationObject_id) REFERENCES public.affectedgenomicmodel(id); |
21 changes: 21 additions & 0 deletions
21
src/main/resources/db/migration/v0.38.0.33__agm_agm_association_loads_3.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--alter TABLE agmagmassociation ADD COLUMN agmAgmAssociationObject_id bigint; | ||
--alter TABLE agmagmassociation drop agmAssociationObject_id; | ||
|
||
CREATE INDEX AgmAgmAssociation_agmAssociationSubject_index ON public.agmagmassociation USING btree (agmassociationsubject_id); | ||
CREATE INDEX AgmAgmAssociation_AgmAgmAssociationObject_index ON public.agmagmassociation USING btree (agmAgmAssociationObject_id); | ||
|
||
drop index agmagmassociation_agmassocobject_in; | ||
drop index agmagmassociation_agmassocsubject_in; | ||
|
||
ALTER TABLE agmagmassociation DROP CONSTRAINT agmstrassociation_agmassocsubject_fk; | ||
ALTER TABLE agmagmassociation DROP CONSTRAINT agmagmassociation_agmassociationobject_fk; | ||
ALTER TABLE agmagmassociation DROP CONSTRAINT agmstrassociation_createdby_fk; | ||
ALTER TABLE agmagmassociation DROP CONSTRAINT agmstrassociation_relation_fk; | ||
ALTER TABLE agmagmassociation DROP CONSTRAINT agmstrassociation_updatedby_fk; | ||
|
||
ALTER TABLE agmagmassociation ADD CONSTRAINT agmagmassociation_agmagmassociationobject_id_fk FOREIGN KEY (agmAgmAssociationObject_id) REFERENCES affectedgenomicmodel(id); | ||
ALTER TABLE agmagmassociation ADD CONSTRAINT agmagmassociation_agmassociationsubject_id_fk FOREIGN KEY (agmassociationsubject_id) REFERENCES affectedgenomicmodel(id); | ||
|
||
ALTER TABLE ONLY public.agmagmassociation ADD CONSTRAINT agmagmassociation_relation_fk FOREIGN KEY (relation_id) REFERENCES public.vocabularyterm(id); | ||
ALTER TABLE ONLY public.agmagmassociation ADD CONSTRAINT agmagmassociation_updatedby_fk FOREIGN KEY (updatedby_id) REFERENCES public.person(id); | ||
ALTER TABLE ONLY public.agmagmassociation ADD CONSTRAINT agmagmassociation_createdby_fk FOREIGN KEY (createdby_id) REFERENCES public.person(id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters