From 319db6dea6508f48372deac7be834f2d335a3826 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Sun, 20 Oct 2024 09:38:27 +0200 Subject: [PATCH] fix schema --- prisma/migrations/20241011131732_client_wallets/migration.sql | 4 ++-- prisma/schema.prisma | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/prisma/migrations/20241011131732_client_wallets/migration.sql b/prisma/migrations/20241011131732_client_wallets/migration.sql index f2e27efc..216e2d59 100644 --- a/prisma/migrations/20241011131732_client_wallets/migration.sql +++ b/prisma/migrations/20241011131732_client_wallets/migration.sql @@ -11,8 +11,8 @@ ALTER TYPE "WalletType" ADD VALUE 'LNC'; ALTER TYPE "WalletType" ADD VALUE 'WEBLN'; -- AlterTable -ALTER TABLE "Wallet" ADD COLUMN "canReceive" BOOLEAN NOT NULL DEFAULT false, -ADD COLUMN "canSend" BOOLEAN NOT NULL DEFAULT true; +ALTER TABLE "Wallet" ADD COLUMN "canReceive" BOOLEAN NOT NULL DEFAULT true, +ADD COLUMN "canSend" BOOLEAN NOT NULL DEFAULT false; -- CreateTable CREATE TABLE "WalletWebLn" ( diff --git a/prisma/schema.prisma b/prisma/schema.prisma index f4ab076b..2884df91 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -195,8 +195,8 @@ model Wallet { enabled Boolean @default(true) priority Int @default(0) user User @relation(fields: [userId], references: [id], onDelete: Cascade) - canReceive Boolean @default(false) - canSend Boolean @default(true) + canReceive Boolean @default(true) + canSend Boolean @default(false) // NOTE: this denormalized json field exists to make polymorphic joins efficient // when reading wallets ... it is populated by a trigger when wallet descendants update