created migration script [WIP]
This commit is contained in:
@@ -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;
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user