Skip to content

Commit

Permalink
- updated the prisma schema and added a new...
Browse files Browse the repository at this point in the history
deleted column and its related migration files.
  • Loading branch information
rezamini committed Sep 4, 2023
1 parent bf8d572 commit 333a64f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `deleted` to the `Todo` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Todo" ADD COLUMN "deleted" BOOLEAN NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Todo" ALTER COLUMN "deleted" SET DEFAULT false;
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ model Todo {
id String @id @default(uuid())
title String
complete Boolean
deleted Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}

0 comments on commit 333a64f

Please sign in to comment.