created migration script [WIP]

This commit is contained in:
daniel31x13
2023-10-25 15:42:36 -04:00
parent 2be2a83c62
commit 966136dab6
4 changed files with 101 additions and 2 deletions
@@ -0,0 +1,13 @@
/*
Warnings:
- You are about to drop the column `image` on the `User` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Link" ADD COLUMN "pdfPath" TEXT,
ADD COLUMN "screenshotPath" TEXT;
-- AlterTable
ALTER TABLE "User" DROP COLUMN "image",
ADD COLUMN "imagePath" TEXT;
+4 -1
View File
@@ -42,7 +42,7 @@ model User {
email String? @unique
emailVerified DateTime?
image String?
imagePath String?
accounts Account[]
sessions Session[]
@@ -122,6 +122,9 @@ model Link {
collectionId Int
tags Tag[]
screenshotPath String?
pdfPath String?
createdAt DateTime @default(now())
}