stacker.news/prisma/migrations/20241122041724_invoice_canc.../migration.sql

5 lines
155 B
SQL

-- AlterTable
ALTER TABLE "Invoice" ADD COLUMN "cancelledAt" TIMESTAMP(3);
UPDATE "Invoice" SET "cancelledAt" = "expiresAt" WHERE "cancelled" = true;