-- AlterTable ALTER TABLE "Event" ADD COLUMN "restrictRsvpToInvited" BOOLEAN NOT NULL DEFAULT false; -- AlterTable: default false going forward, but every existing row was -- created under the old logic that only inserted a GuestInvite after a -- successful send, so backfill those as true. ALTER TABLE "GuestInvite" ADD COLUMN "emailSent" BOOLEAN NOT NULL DEFAULT false; UPDATE "GuestInvite" SET "emailSent" = true;