diff --git a/web/prisma/migrations/20250610171300_required_feed_id/migration.sql b/web/prisma/migrations/20250610171300_required_feed_id/migration.sql new file mode 100644 index 0000000..f4d3e47 --- /dev/null +++ b/web/prisma/migrations/20250610171300_required_feed_id/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - Made the column `feedId` on table `User` required. This step will fail if there are existing NULL values in that column. + +*/ +-- AlterTable +ALTER TABLE "User" ALTER COLUMN "feedId" SET NOT NULL; diff --git a/web/prisma/schema.prisma b/web/prisma/schema.prisma index 0e002b1..a041a11 100644 --- a/web/prisma/schema.prisma +++ b/web/prisma/schema.prisma @@ -498,7 +498,7 @@ model User { moderator Boolean @default(false) verifiedLink String? secretTokenHash String @unique - feedId String? @unique @default(cuid(2)) + feedId String @unique @default(cuid(2)) /// Computed via trigger. Do not update through prisma. totalKarma Int @default(0)