-- AlterEnum -- This migration adds more than one value to an enum. -- With PostgreSQL versions 11 and earlier, this is not possible -- in a single migration. This can be worked around by creating -- multiple migrations, each migration adding only one value to -- the enum. ALTER TYPE "NodeState" ADD VALUE 'RETRIEVE_URL'; ALTER TYPE "NodeState" ADD VALUE 'RETRIEVE_URL_FAIL'; ALTER TYPE "NodeState" ADD VALUE 'RETREIVE_URL_SUCCESS'; -- AlterTable ALTER TABLE "Invite" ALTER COLUMN "expiredAt" SET DEFAULT '2001-01-01 00:00:00'; -- AlterTable ALTER TABLE "MagicLink" ALTER COLUMN "expiresAt" SET DEFAULT now() + '1 hour';