~williamvds/dissertation

c1a0c464c463842296a4e9b7b847cf69064c88df — williamvds 3 years ago 7ad77a2
scripts: Cast to gtrSector during import
1 files changed, 3 insertions(+), 3 deletions(-)

M scripts/importGtrOutcomes.sql
M scripts/importGtrOutcomes.sql => scripts/importGtrOutcomes.sql +3 -3
@@ 84,7 84,7 @@ LOOP
		outcome.partnerContribution,
		date(outcome.startDate),
		date(outcome.endDate),
		outcome.sector,
		outcome.sector::gtrSector,
		outcome.country,
		outcome.impact,
		outcome.supportingUrl


@@ 150,7 150,7 @@ LOOP
		outcome.fundingId,
		date(outcome.startDate),
		date(outcome.endDate),
		outcome.sector,
		outcome.sector::gtrSector,
		outcome.country
	) ON CONFLICT DO NOTHING;
END LOOP;


@@ 182,7 182,7 @@ LOOP
		outcome.summary,
		outcome.beneficiaries,
		outcome.contributionMethod,
		outcome.sector,
		outcome.sector::gtrSector,
		outcome.firstYearOfImpact::int
	) ON CONFLICT DO NOTHING;
END LOOP;