Files
campaign-site/prisma/migrations/20250402210015_donation_crypto_payments_array/migration.sql
2025-04-02 18:01:00 -03:00

18 lines
740 B
SQL

/*
Warnings:
- A unique constraint covering the columns `[btcPayInvoiceId]` on the table `Donation` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[stripePaymentIntentId]` on the table `Donation` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterTable
ALTER TABLE "Donation" ADD COLUMN "cryptoPayments" JSONB,
ALTER COLUMN "grossCryptoAmount" SET DATA TYPE TEXT,
ALTER COLUMN "netCryptoAmount" SET DATA TYPE TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "Donation_btcPayInvoiceId_key" ON "Donation"("btcPayInvoiceId");
-- CreateIndex
CREATE UNIQUE INDEX "Donation_stripePaymentIntentId_key" ON "Donation"("stripePaymentIntentId");