From 2e4ad7ab196d1a5178a9127c7b080261ffdb70c4 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Mon, 25 Sep 2023 14:44:16 +0700 Subject: [PATCH] fix: change sleepDurationMs from int to bigint --- .../20230925060214_sleep_duration_ms_bigint/migration.sql | 2 ++ schema.prisma | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 migrations/20230925060214_sleep_duration_ms_bigint/migration.sql diff --git a/migrations/20230925060214_sleep_duration_ms_bigint/migration.sql b/migrations/20230925060214_sleep_duration_ms_bigint/migration.sql new file mode 100644 index 0000000..4dc58e4 --- /dev/null +++ b/migrations/20230925060214_sleep_duration_ms_bigint/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Subscription" ALTER COLUMN "sleepDurationMs" SET DATA TYPE BIGINT; diff --git a/schema.prisma b/schema.prisma index effcec3..a0d6efd 100644 --- a/schema.prisma +++ b/schema.prisma @@ -18,7 +18,7 @@ model Subscription { message String? payerData String? // LUD-18 encoded JSON payer data sleepDuration String - sleepDurationMs Int? + sleepDurationMs BigInt? createdDateTime DateTime @default(now()) lastEventDateTime DateTime? lastSuccessfulPaymentDateTime DateTime?