fix: displayName return undefined and drop displayName from user table (#505)
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `displayName` on the `users` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" DROP COLUMN "displayName",
|
||||
ALTER COLUMN "firstName" DROP DEFAULT,
|
||||
ALTER COLUMN "lastName" DROP DEFAULT;
|
||||
@ -138,11 +138,6 @@ model User {
|
||||
firstName String
|
||||
/// @Validator.IsString()
|
||||
lastName String
|
||||
// @deprecated: Use `firstName` and `lastName` instead
|
||||
/// @Validator.IsString()
|
||||
/// @Validator.IsOptional()
|
||||
/// @TypeGraphQL.omit(input: false, output: true)
|
||||
displayName String?
|
||||
/// @Validator.IsEmail()
|
||||
email String @unique
|
||||
/// @Validator.IsBoolean()
|
||||
|
||||
Reference in New Issue
Block a user