|
| 1 | +/* |
| 2 | + Warnings: |
| 3 | +
|
| 4 | + - You are about to drop the column `categories` on the `Post` table. All the data in the column will be lost. |
| 5 | + - You are about to drop the column `content` on the `Post` table. All the data in the column will be lost. |
| 6 | + - You are about to drop the column `createdAt` on the `Post` table. All the data in the column will be lost. |
| 7 | + - You are about to drop the column `sentiment` on the `Post` table. All the data in the column will be lost. |
| 8 | + - You are about to drop the column `source` on the `Post` table. All the data in the column will be lost. |
| 9 | + - You are about to drop the column `subcategories` on the `Post` table. All the data in the column will be lost. |
| 10 | + - You are about to drop the column `updatedAt` on the `Post` table. All the data in the column will be lost. |
| 11 | + - Added the required column `sentiment` to the `Subpost` table without a default value. This is not possible if the table is not empty. |
| 12 | + - Added the required column `source` to the `Subpost` table without a default value. This is not possible if the table is not empty. |
| 13 | +
|
| 14 | +*/ |
| 15 | +-- DropIndex |
| 16 | +DROP INDEX "public"."Post_categories_idx"; |
| 17 | + |
| 18 | +-- DropIndex |
| 19 | +DROP INDEX "public"."Post_subcategories_idx"; |
| 20 | + |
| 21 | +-- AlterTable |
| 22 | +ALTER TABLE "public"."Post" DROP COLUMN "categories", |
| 23 | +DROP COLUMN "content", |
| 24 | +DROP COLUMN "createdAt", |
| 25 | +DROP COLUMN "sentiment", |
| 26 | +DROP COLUMN "source", |
| 27 | +DROP COLUMN "subcategories", |
| 28 | +DROP COLUMN "updatedAt", |
| 29 | +ADD COLUMN "bearishSummary" TEXT, |
| 30 | +ADD COLUMN "bullishSummary" TEXT, |
| 31 | +ADD COLUMN "neutralSummary" TEXT, |
| 32 | +ADD COLUMN "totalSubposts" INTEGER NOT NULL DEFAULT 0; |
| 33 | + |
| 34 | +-- AlterTable |
| 35 | +ALTER TABLE "public"."Subpost" ADD COLUMN "categories" TEXT[] DEFAULT ARRAY[]::TEXT[], |
| 36 | +ADD COLUMN "link" TEXT, |
| 37 | +ADD COLUMN "sentiment" "public"."Sentiment" NOT NULL, |
| 38 | +ADD COLUMN "source" "public"."Source" NOT NULL, |
| 39 | +ADD COLUMN "subcategories" TEXT[] DEFAULT ARRAY[]::TEXT[]; |
0 commit comments