Skip to content

Commit

Permalink
Remove population of newly created column
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloGracia committed Nov 8, 2024
1 parent 63b978c commit a2130b5
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
alter table "public"."help_requests" add column "asignees_count" smallint not null default '0'::smallint;

UPDATE "public"."help_requests"
SET "assignees_count" = (
SELECT COUNT(*)
FROM "public"."help_request_assignments"
WHERE "public"."help_request_assignments"."help_request_id" = "public"."help_requests"."id"
);
alter table "public"."help_requests" add column "asignees_count" smallint not null default '0'::smallint;

0 comments on commit a2130b5

Please sign in to comment.