From 92accc8207c05b2c30dafcd982308b69f951b6d5 Mon Sep 17 00:00:00 2001 From: Valentin Date: Wed, 6 Nov 2024 19:11:27 +0200 Subject: [PATCH 1/2] Scout telegram user (#387) * Scout telegram user * ci: version bump to 0.93.2-rc-feat-sg-telegra.0 * Minimal info for telegram * ci: version bump to 0.93.2-rc-feat-sg-telegra.1 --------- Co-authored-by: Automated Version Bump --- package.json | 2 +- .../20241106160230_scout_telegram_id/migration.sql | 14 ++++++++++++++ src/prisma/schema.prisma | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/prisma/migrations/20241106160230_scout_telegram_id/migration.sql diff --git a/package.json b/package.json index 837cae9e..e79ba6e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@charmverse/core", - "version": "0.93.1", + "version": "0.93.2-rc-feat-sg-telegra.1", "description": "Core API for Charmverse", "type": "commonjs", "types": "./dist/cjs/index.d.ts", diff --git a/src/prisma/migrations/20241106160230_scout_telegram_id/migration.sql b/src/prisma/migrations/20241106160230_scout_telegram_id/migration.sql new file mode 100644 index 00000000..047306e2 --- /dev/null +++ b/src/prisma/migrations/20241106160230_scout_telegram_id/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - A unique constraint covering the columns `[telegramId]` on the table `Scout` will be added. If there are existing duplicate values, this will fail. + +*/ +-- AlterTable +ALTER TABLE "Scout" ADD COLUMN "telegramId" INTEGER; + +-- CreateIndex +CREATE UNIQUE INDEX "Scout_telegramId_key" ON "Scout"("telegramId"); + +-- CreateIndex +CREATE INDEX "Scout_telegramId_idx" ON "Scout"("telegramId"); diff --git a/src/prisma/schema.prisma b/src/prisma/schema.prisma index 27a9fa71..a69e9b6f 100644 --- a/src/prisma/schema.prisma +++ b/src/prisma/schema.prisma @@ -2795,6 +2795,7 @@ model Scout { displayName String farcasterId Int? @unique farcasterName String? // every user only has one farcaster account + telegramId Int? @unique walletENS String? avatar String? bio String? @@ -2821,6 +2822,7 @@ model Scout { @@index([path]) @@index([farcasterId]) + @@index([telegramId]) } model BuilderStrike { From b6af8c91a08fee8e7cbabbc8d90f32a0ffa08464 Mon Sep 17 00:00:00 2001 From: Automated Version Bump Date: Wed, 6 Nov 2024 17:12:50 +0000 Subject: [PATCH 2/2] CI: bumps version to 0.94.0 in workflow 11708507562 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e79ba6e7..810e1ed0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@charmverse/core", - "version": "0.93.2-rc-feat-sg-telegra.1", + "version": "0.94.0", "description": "Core API for Charmverse", "type": "commonjs", "types": "./dist/cjs/index.d.ts",