diff --git a/package.json b/package.json index 9fb1523b..588ab697 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@charmverse/core", - "version": "0.92.0", + "version": "0.92.1-rc-drop-username.0", "description": "Core API for Charmverse", "type": "commonjs", "types": "./dist/cjs/index.d.ts", diff --git a/src/prisma/migrations/20241029224614_remove_scout_username/migration.sql b/src/prisma/migrations/20241029224614_remove_scout_username/migration.sql new file mode 100644 index 00000000..0c134ab3 --- /dev/null +++ b/src/prisma/migrations/20241029224614_remove_scout_username/migration.sql @@ -0,0 +1,10 @@ +/* + Warnings: + + - You are about to drop the column `username` on the `Scout` table. All the data in the column will be lost. + - Made the column `path` on table `Scout` required. This step will fail if there are existing NULL values in that column. + +*/ +-- AlterTable +ALTER TABLE "Scout" DROP COLUMN "username", +ALTER COLUMN "path" SET NOT NULL; diff --git a/src/prisma/schema.prisma b/src/prisma/schema.prisma index fbe29983..d76f21ad 100644 --- a/src/prisma/schema.prisma +++ b/src/prisma/schema.prisma @@ -2791,8 +2791,7 @@ model Scout { createdAt DateTime @default(now()) id String @id @default(uuid()) @db.Uuid email String? - username String? - path String? @unique + path String @unique displayName String farcasterId Int? @unique farcasterName String? // every user only has one farcaster account