-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from IATI/additional_org_fields
Save and make available additional reporting_org fields
- Loading branch information
Showing
43 changed files
with
1,005 additions
and
356 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12.6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- | ||
-- depends: 20240827_01_pVOLG | ||
-- | ||
|
||
drop table iati_organisations; |
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 @@ | ||
-- | ||
-- depends: 20240827_01_pVOLG | ||
-- | ||
|
||
-- auto-generated definition | ||
create table iati_organisations | ||
( | ||
id uuid not null, | ||
short_name varchar not null, | ||
iati_identifier varchar, | ||
human_readable_name varchar, | ||
registration_service_reporting_org_metadata varchar | ||
); | ||
|
||
comment on column iati_organisations.id is 'the UUID of the reporting organisation'; | ||
|
||
comment on column iati_organisations.short_name is 'the short id of the reporting organisation'; | ||
|
||
comment on column iati_organisations.iati_identifier is 'the IATI identifier of the reporting organisation'; | ||
|
||
comment on column iati_organisations.human_readable_name is 'the canonical human readable name of the reporting organisation'; | ||
|
||
comment on column iati_organisations.registration_service_reporting_org_metadata is 'the original reporting organisation metadata record from the data registration service'; | ||
|
||
alter table iati_organisations | ||
owner to bds; | ||
|
||
create unique index iati_organisations_pk | ||
on iati_organisations (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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- | ||
-- depends: 20250109_01_87Bsu | ||
-- | ||
|
||
alter table iati_reporting_orgs | ||
rename to iati_organisations; |
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,6 @@ | ||
-- | ||
-- depends: 20250109_01_87Bsu | ||
-- | ||
|
||
alter table iati_organisations | ||
rename to iati_reporting_orgs; |
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,17 @@ | ||
-- | ||
-- depends: 20250109_02_CDARS | ||
-- | ||
|
||
ALTER TABLE | ||
iati_datasets | ||
ADD | ||
registration_service_publisher_metadata VARCHAR; | ||
|
||
alter table iati_datasets | ||
rename column reporting_org_id to publisher_id; | ||
|
||
alter table iati_datasets | ||
rename column reporting_org_short_name to publisher_name; | ||
|
||
alter table iati_datasets | ||
rename column short_name to name; |
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,15 @@ | ||
-- | ||
-- depends: 20250109_02_CDARS | ||
-- | ||
|
||
alter table iati_datasets | ||
drop column if exists registration_service_publisher_metadata; | ||
|
||
alter table iati_datasets | ||
rename column publisher_id to reporting_org_id; | ||
|
||
alter table iati_datasets | ||
rename column publisher_name to reporting_org_short_name; | ||
|
||
alter table iati_datasets | ||
rename column name to short_name; |
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
Oops, something went wrong.