Skip to content

Commit c5f7579

Browse files
authored
Merge pull request #5 from DevelopmentFinanceObservatory/release/website
Sync dfo-website@603bb337769b
2 parents 68b7b2f + 611b654 commit c5f7579

32 files changed

Lines changed: 3321 additions & 150 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE "share_ref" DROP COLUMN "resolved_stat_var_dcids";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE "share_ref" ADD COLUMN "entity_groups" jsonb;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- A share's named groups are posted to Search beside the identity, and Search refuses an identity that holds them.
2+
-- This moves `entity_groups` out of each stored identity into the `entity_groups` column; a JSON null there becomes a SQL NULL.
3+
UPDATE share_ref
4+
SET entity_groups = NULLIF(identity -> 'entity_groups', 'null'::jsonb),
5+
identity = identity - 'entity_groups'
6+
WHERE identity ? 'entity_groups';

0 commit comments

Comments
 (0)