@@ -540,8 +540,11 @@ CREATE VIEW ctgov.all_group_types AS
540540CREATE TABLE ctgov .id_information (
541541 id integer NOT NULL ,
542542 nct_id character varying,
543+ id_source character varying,
544+ id_value character varying,
543545 id_type character varying,
544- id_value character varying
546+ id_type_description character varying,
547+ id_link character varying
545548);
546549
547550
@@ -1085,7 +1088,10 @@ CREATE TABLE ctgov.eligibilities (
10851088 population text ,
10861089 criteria text ,
10871090 gender_description text ,
1088- gender_based boolean
1091+ gender_based boolean ,
1092+ adult boolean ,
1093+ child boolean ,
1094+ older_adult boolean
10891095);
10901096
10911097
@@ -2236,7 +2242,8 @@ CREATE TABLE ctgov.responsible_parties (
22362242 name character varying,
22372243 title character varying,
22382244 organization character varying,
2239- affiliation text
2245+ affiliation text ,
2246+ old_name_title character varying
22402247);
22412248
22422249
@@ -3815,10 +3822,10 @@ CREATE INDEX index_facility_contacts_on_contact_type ON ctgov.facility_contacts
38153822
38163823
38173824--
3818- -- Name: index_id_information_on_id_type ; Type: INDEX; Schema: ctgov; Owner: -
3825+ -- Name: index_id_information_on_id_source ; Type: INDEX; Schema: ctgov; Owner: -
38193826--
38203827
3821- CREATE INDEX index_id_information_on_id_type ON ctgov .id_information USING btree (id_type );
3828+ CREATE INDEX index_id_information_on_id_source ON ctgov .id_information USING btree (id_source );
38223829
38233830
38243831--
@@ -4220,62 +4227,6 @@ CREATE INDEX "index_support.study_xml_records_on_nct_id" ON support.study_xml_re
42204227CREATE TRIGGER category_insert_trigger INSTEAD OF INSERT ON ctgov .categories FOR EACH ROW EXECUTE FUNCTION ctgov .category_insert_function ();
42214228
42224229
4223- --
4224- -- Name: baseline_counts baseline_counts_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4225- --
4226-
4227- ALTER TABLE ONLY ctgov .baseline_counts
4228- ADD CONSTRAINT baseline_counts_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4229-
4230-
4231- --
4232- -- Name: baseline_measurements baseline_measurements_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4233- --
4234-
4235- ALTER TABLE ONLY ctgov .baseline_measurements
4236- ADD CONSTRAINT baseline_measurements_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4237-
4238-
4239- --
4240- -- Name: design_group_interventions design_group_interventions_design_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4241- --
4242-
4243- ALTER TABLE ONLY ctgov .design_group_interventions
4244- ADD CONSTRAINT design_group_interventions_design_group_id_fkey FOREIGN KEY (design_group_id) REFERENCES ctgov .design_groups (id);
4245-
4246-
4247- --
4248- -- Name: design_group_interventions design_group_interventions_intervention_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4249- --
4250-
4251- ALTER TABLE ONLY ctgov .design_group_interventions
4252- ADD CONSTRAINT design_group_interventions_intervention_id_fkey FOREIGN KEY (intervention_id) REFERENCES ctgov .interventions (id);
4253-
4254-
4255- --
4256- -- Name: drop_withdrawals drop_withdrawals_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4257- --
4258-
4259- ALTER TABLE ONLY ctgov .drop_withdrawals
4260- ADD CONSTRAINT drop_withdrawals_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4261-
4262-
4263- --
4264- -- Name: facility_contacts facility_contacts_facility_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4265- --
4266-
4267- ALTER TABLE ONLY ctgov .facility_contacts
4268- ADD CONSTRAINT facility_contacts_facility_id_fkey FOREIGN KEY (facility_id) REFERENCES ctgov .facilities (id);
4269-
4270-
4271- --
4272- -- Name: facility_investigators facility_investigators_facility_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4273- --
4274-
4275- ALTER TABLE ONLY ctgov .facility_investigators
4276- ADD CONSTRAINT facility_investigators_facility_id_fkey FOREIGN KEY (facility_id) REFERENCES ctgov .facilities (id);
4277-
4278-
42794230--
42804231-- Name: active_storage_attachments fk_rails_c3b3935057; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
42814232--
@@ -4284,86 +4235,6 @@ ALTER TABLE ONLY ctgov.active_storage_attachments
42844235 ADD CONSTRAINT fk_rails_c3b3935057 FOREIGN KEY (blob_id) REFERENCES ctgov .active_storage_blobs (id);
42854236
42864237
4287- --
4288- -- Name: intervention_other_names intervention_other_names_intervention_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4289- --
4290-
4291- ALTER TABLE ONLY ctgov .intervention_other_names
4292- ADD CONSTRAINT intervention_other_names_intervention_id_fkey FOREIGN KEY (intervention_id) REFERENCES ctgov .interventions (id);
4293-
4294-
4295- --
4296- -- Name: milestones milestones_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4297- --
4298-
4299- ALTER TABLE ONLY ctgov .milestones
4300- ADD CONSTRAINT milestones_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4301-
4302-
4303- --
4304- -- Name: outcome_analyses outcome_analyses_outcome_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4305- --
4306-
4307- ALTER TABLE ONLY ctgov .outcome_analyses
4308- ADD CONSTRAINT outcome_analyses_outcome_id_fkey FOREIGN KEY (outcome_id) REFERENCES ctgov .outcomes (id);
4309-
4310-
4311- --
4312- -- Name: outcome_analysis_groups outcome_analysis_groups_outcome_analysis_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4313- --
4314-
4315- ALTER TABLE ONLY ctgov .outcome_analysis_groups
4316- ADD CONSTRAINT outcome_analysis_groups_outcome_analysis_id_fkey FOREIGN KEY (outcome_analysis_id) REFERENCES ctgov .outcome_analyses (id);
4317-
4318-
4319- --
4320- -- Name: outcome_analysis_groups outcome_analysis_groups_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4321- --
4322-
4323- ALTER TABLE ONLY ctgov .outcome_analysis_groups
4324- ADD CONSTRAINT outcome_analysis_groups_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4325-
4326-
4327- --
4328- -- Name: outcome_counts outcome_counts_outcome_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4329- --
4330-
4331- ALTER TABLE ONLY ctgov .outcome_counts
4332- ADD CONSTRAINT outcome_counts_outcome_id_fkey FOREIGN KEY (outcome_id) REFERENCES ctgov .outcomes (id);
4333-
4334-
4335- --
4336- -- Name: outcome_counts outcome_counts_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4337- --
4338-
4339- ALTER TABLE ONLY ctgov .outcome_counts
4340- ADD CONSTRAINT outcome_counts_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4341-
4342-
4343- --
4344- -- Name: outcome_measurements outcome_measurements_outcome_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4345- --
4346-
4347- ALTER TABLE ONLY ctgov .outcome_measurements
4348- ADD CONSTRAINT outcome_measurements_outcome_id_fkey FOREIGN KEY (outcome_id) REFERENCES ctgov .outcomes (id);
4349-
4350-
4351- --
4352- -- Name: outcome_measurements outcome_measurements_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4353- --
4354-
4355- ALTER TABLE ONLY ctgov .outcome_measurements
4356- ADD CONSTRAINT outcome_measurements_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4357-
4358-
4359- --
4360- -- Name: reported_events reported_events_result_group_id_fkey; Type: FK CONSTRAINT; Schema: ctgov; Owner: -
4361- --
4362-
4363- ALTER TABLE ONLY ctgov .reported_events
4364- ADD CONSTRAINT reported_events_result_group_id_fkey FOREIGN KEY (result_group_id) REFERENCES ctgov .result_groups (id);
4365-
4366-
43674238--
43684239-- Name: sanity_checks fk_rails_9d86ec7e91; Type: FK CONSTRAINT; Schema: support; Owner: -
43694240--
@@ -4414,6 +4285,7 @@ INSERT INTO "schema_migrations" (version) VALUES
44144285(' 20220429175157' ),
44154286(' 20220512025646' ),
44164287(' 20220512030503' ),
4417- (' 20220512030831' );
4418-
4419-
4288+ (' 20220512030831' ),
4289+ (' 20220520124716' ),
4290+ (' 20220520133313' ),
4291+ (' 20220523123928' );
0 commit comments