Skip to content

Commit

Permalink
fix: single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Nov 13, 2024
1 parent cac29bd commit d70f201
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ALTER TABLE "Initiative" DROP COLUMN "reportingPeriodId";

-- AlterTable
ALTER TABLE "ReportingPeriod" ADD COLUMN "year" TEXT;
UPDATE "ReportingPeriod" SET "year" = DATE_PART("year", "endDate"::date);
UPDATE "ReportingPeriod" SET "year" = DATE_PART('year', "endDate"::date);
ALTER TABLE "ReportingPeriod" ALTER COLUMN "year" SET NOT NULL;

ALTER TABLE "ReportingPeriod" DROP CONSTRAINT "ReportingPeriod_pkey",
Expand Down

0 comments on commit d70f201

Please sign in to comment.