fenghuo/packages/db/prisma/migrations/20250604044608_y/migration.sql

15 lines
712 B
SQL

/*
Warnings:
- You are about to drop the column `is_public` on the `resource` table. All the data in the column will be lost.
- Added the required column `storage_type` to the `resource` table without a default value. This is not possible if the table is not empty.
- Made the column `title` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `fileId` on table `resource` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "resource" DROP COLUMN "is_public",
ADD COLUMN "storage_type" TEXT NOT NULL,
ALTER COLUMN "title" SET NOT NULL,
ALTER COLUMN "fileId" SET NOT NULL;