Browse Source

add balance migration

main
matthew 2 years ago
parent
commit
f89dd350b2
  1. 4
      searching-front/db/migrations/20221017175006_add_balance/migration.sql
  2. 2
      searching-front/db/migrations/20221017180409_change_int_to_string/migration.sql
  3. 3
      searching-front/db/schema.prisma

4
searching-front/db/migrations/20221017175006_add_balance/migration.sql

@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "NftDomain" ADD COLUMN "domainName" TEXT NOT NULL DEFAULT '',
ADD COLUMN "tonBalance" INTEGER,
ADD COLUMN "walletAddress" TEXT;

2
searching-front/db/migrations/20221017180409_change_int_to_string/migration.sql

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "NftDomain" ALTER COLUMN "tonBalance" SET DATA TYPE TEXT;

3
searching-front/db/schema.prisma

@ -97,4 +97,7 @@ model NftDomain {
lastParse DateTime? lastParse DateTime?
firstAvailableDate DateTime? firstAvailableDate DateTime?
blocked Boolean? @default(false) blocked Boolean? @default(false)
domainName String @default("")
walletAddress String?
tonBalance String?
} }

Loading…
Cancel
Save