From ed0a216cc3dbad7eb798193f1ee4f4be171a4f6d Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Thu, 23 Jun 2022 19:02:19 +0300 Subject: [PATCH] fix: remove unique username constraint removed the unique constraint for user name from the database schema Fixes #46 --- .../20220623155452_remove_unique_from_user_name/migration.sql | 2 ++ prisma/schema.prisma | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20220623155452_remove_unique_from_user_name/migration.sql diff --git a/prisma/migrations/20220623155452_remove_unique_from_user_name/migration.sql b/prisma/migrations/20220623155452_remove_unique_from_user_name/migration.sql new file mode 100644 index 0000000..7258b14 --- /dev/null +++ b/prisma/migrations/20220623155452_remove_unique_from_user_name/migration.sql @@ -0,0 +1,2 @@ +-- DropIndex +DROP INDEX "User_name_key"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 764540c..5e4bec8 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -41,7 +41,7 @@ model Vote { model User { id Int @id @default(autoincrement()) pubKey String? @unique - name String? @unique + name String? avatar String? role String @default("user")