added seed script + renamed table fields + added field

This commit is contained in:
daniel31x13
2023-12-22 13:13:43 -05:00
parent 385bdc2343
commit 98106b9f25
15 changed files with 957 additions and 370 deletions
@@ -0,0 +1,13 @@
/*
Warnings:
- You are about to drop the column `pdf` on the `Link` table. All the data in the column will be lost.
- You are about to drop the column `readable` on the `Link` table. All the data in the column will be lost.
- You are about to drop the column `screenshotPath` on the `Link` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Link" RENAME COLUMN "screenshotPath" TO "image";
ALTER TABLE "Link" RENAME COLUMN "pdfPath" TO "pdf";
ALTER TABLE "Link" RENAME COLUMN "readabilityPath" TO "readable";
ALTER TABLE "Link" ADD COLUMN "preview" TEXT;