mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
18 lines
740 B
SQL
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");
|