From f218cea2d028744b81489226efa8ba65889f5d4f Mon Sep 17 00:00:00 2001 From: aman035 Date: Tue, 29 Oct 2024 21:09:22 +0530 Subject: [PATCH] increase category limit --- prisma/migrations/20241029151847_init/migration.sql | 2 ++ prisma/schema.prisma | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20241029151847_init/migration.sql diff --git a/prisma/migrations/20241029151847_init/migration.sql b/prisma/migrations/20241029151847_init/migration.sql new file mode 100644 index 0000000..be1a78a --- /dev/null +++ b/prisma/migrations/20241029151847_init/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Transaction" ALTER COLUMN "category" SET DATA TYPE VARCHAR(128); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 5a98e4d..ce9251c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -20,7 +20,7 @@ model Transaction { ts BigInt @default(0) @map("ts") // Changed to BigInt txn_hash String @db.VarChar(128) block_hash String @db.VarChar(128) - category String @db.VarChar(32) + category String @db.VarChar(128) sender String @db.VarChar(128) status String @db.VarChar(64) from String @db.VarChar(128)