From b6298b8feb087ae7863f226aa12a6ca2c9f513bd Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 13 Oct 2022 23:30:50 +0400 Subject: [PATCH] add block mechanism --- docker-compose.yml | 2 ++ searching-front/db/migrations/20221013192856_a/migration.sql | 2 ++ searching-front/db/schema.prisma | 1 + 3 files changed, 5 insertions(+) create mode 100644 searching-front/db/migrations/20221013192856_a/migration.sql diff --git a/docker-compose.yml b/docker-compose.yml index 56ddb9b..3745c6c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,8 @@ services: - db - influxdb watcher: + ports: + - '5555:5555' container_name: watcher depends_on: - elasticsearch diff --git a/searching-front/db/migrations/20221013192856_a/migration.sql b/searching-front/db/migrations/20221013192856_a/migration.sql new file mode 100644 index 0000000..44e9096 --- /dev/null +++ b/searching-front/db/migrations/20221013192856_a/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "NftDomain" ADD COLUMN "blocked" BOOLEAN DEFAULT false; diff --git a/searching-front/db/schema.prisma b/searching-front/db/schema.prisma index fb0902c..7664de2 100644 --- a/searching-front/db/schema.prisma +++ b/searching-front/db/schema.prisma @@ -96,4 +96,5 @@ model NftDomain { available Boolean lastParse DateTime? firstAvailableDate DateTime? + blocked Boolean? @default(false) }