diff --git a/migrations/20230925082714_sleep_duration_ms_required/migration.sql b/migrations/20230925082714_sleep_duration_ms_required/migration.sql new file mode 100644 index 0000000..2f6953c --- /dev/null +++ b/migrations/20230925082714_sleep_duration_ms_required/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - Made the column `sleepDurationMs` on table `Subscription` required. This step will fail if there are existing NULL values in that column. + +*/ +-- AlterTable +ALTER TABLE "Subscription" ALTER COLUMN "sleepDurationMs" SET NOT NULL; diff --git a/schema.prisma b/schema.prisma index a0d6efd..50c5968 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 BigInt? + sleepDurationMs BigInt createdDateTime DateTime @default(now()) lastEventDateTime DateTime? lastSuccessfulPaymentDateTime DateTime?