diff --git a/prisma/migrations/20241011131732_client_wallets/migration.sql b/prisma/migrations/20241011131732_client_wallets/migration.sql index 216e2d59..5ef68626 100644 --- a/prisma/migrations/20241011131732_client_wallets/migration.sql +++ b/prisma/migrations/20241011131732_client_wallets/migration.sql @@ -13,51 +13,3 @@ ALTER TYPE "WalletType" ADD VALUE 'WEBLN'; -- AlterTable ALTER TABLE "Wallet" ADD COLUMN "canReceive" BOOLEAN NOT NULL DEFAULT true, ADD COLUMN "canSend" BOOLEAN NOT NULL DEFAULT false; - --- CreateTable -CREATE TABLE "WalletWebLn" ( - "id" SERIAL NOT NULL, - "walletId" INTEGER NOT NULL, - "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - - CONSTRAINT "WalletWebLn_pkey" PRIMARY KEY ("id") -); - --- CreateTable -CREATE TABLE "WalletLNC" ( - "id" SERIAL NOT NULL, - "walletId" INTEGER NOT NULL, - "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - - CONSTRAINT "WalletLNC_pkey" PRIMARY KEY ("id") -); - --- CreateTable -CREATE TABLE "WalletBlink" ( - "id" SERIAL NOT NULL, - "walletId" INTEGER NOT NULL, - "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - - CONSTRAINT "WalletBlink_pkey" PRIMARY KEY ("id") -); - --- CreateIndex -CREATE UNIQUE INDEX "WalletWebLn_walletId_key" ON "WalletWebLn"("walletId"); - --- CreateIndex -CREATE UNIQUE INDEX "WalletLNC_walletId_key" ON "WalletLNC"("walletId"); - --- CreateIndex -CREATE UNIQUE INDEX "WalletBlink_walletId_key" ON "WalletBlink"("walletId"); - --- AddForeignKey -ALTER TABLE "WalletWebLn" ADD CONSTRAINT "WalletWebLn_walletId_fkey" FOREIGN KEY ("walletId") REFERENCES "Wallet"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "WalletLNC" ADD CONSTRAINT "WalletLNC_walletId_fkey" FOREIGN KEY ("walletId") REFERENCES "Wallet"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "WalletBlink" ADD CONSTRAINT "WalletBlink_walletId_fkey" FOREIGN KEY ("walletId") REFERENCES "Wallet"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/prisma/migrations/20241013200637_client_wallets_2/migration.sql b/prisma/migrations/20241013200637_client_wallets_2/migration.sql deleted file mode 100644 index 593c9b2e..00000000 --- a/prisma/migrations/20241013200637_client_wallets_2/migration.sql +++ /dev/null @@ -1,25 +0,0 @@ -/* - Warnings: - - - You are about to drop the `WalletBlink` table. If the table is not empty, all the data it contains will be lost. - - You are about to drop the `WalletLNC` table. If the table is not empty, all the data it contains will be lost. - - You are about to drop the `WalletWebLn` table. If the table is not empty, all the data it contains will be lost. - -*/ --- DropForeignKey -ALTER TABLE "WalletBlink" DROP CONSTRAINT "WalletBlink_walletId_fkey"; - --- DropForeignKey -ALTER TABLE "WalletLNC" DROP CONSTRAINT "WalletLNC_walletId_fkey"; - --- DropForeignKey -ALTER TABLE "WalletWebLn" DROP CONSTRAINT "WalletWebLn_walletId_fkey"; - --- DropTable -DROP TABLE "WalletBlink"; - --- DropTable -DROP TABLE "WalletLNC"; - --- DropTable -DROP TABLE "WalletWebLn";