Skip to content

Commit 593591e

Browse files
committed
birth date type fix to datetime
1 parent 579cc53 commit 593591e

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
Warnings:
3+
4+
- The `birth_date` column on the `Member` table would be dropped and recreated. This will lead to data loss if there is data in the column.
5+
6+
*/
7+
-- AlterTable
8+
ALTER TABLE "Member" DROP COLUMN "birth_date",
9+
ADD COLUMN "birth_date" DATE;

prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ model Member {
1616
id String @id @default(uuid())
1717
name String
1818
email String @unique
19-
birth_date String?
19+
birth_date DateTime? @db.Date
2020
phone String? // Single phone number
2121
bio String?
2222
profilePhoto String? // URL to profile photo

0 commit comments

Comments
 (0)