From f6d00f5e373d1e2ce37ed503eb8b6a66e6bc2a6e Mon Sep 17 00:00:00 2001 From: Fanch Date: Wed, 15 May 2024 17:25:21 +0200 Subject: [PATCH] feat(pause ad): add pause in db with prisma --- prisma/migrations/20240515150021_pause/migration.sql | 2 ++ prisma/schema.prisma | 1 + 2 files changed, 3 insertions(+) create mode 100644 prisma/migrations/20240515150021_pause/migration.sql diff --git a/prisma/migrations/20240515150021_pause/migration.sql b/prisma/migrations/20240515150021_pause/migration.sql new file mode 100644 index 0000000..0fcd0e3 --- /dev/null +++ b/prisma/migrations/20240515150021_pause/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "ad" ADD COLUMN "pause" BOOLEAN NOT NULL DEFAULT false; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 9c5060c..f649969 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -29,6 +29,7 @@ model Ad { passengerDuration Int? passengerDistance Int? waypoints Unsupported("geography(LINESTRING)")? + pause Boolean @default(false) direction Unsupported("geography(LINESTRING)")? fwdAzimuth Int backAzimuth Int