21 lines
875 B
SQL
21 lines
875 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `layoutGroup` on the `PortfolioImage` table. All the data in the column will be lost.
|
|
- You are about to drop the column `layoutOrder` on the `PortfolioImage` table. All the data in the column will be lost.
|
|
- Made the column `fileType` on table `PortfolioImage` required. This step will fail if there are existing NULL values in that column.
|
|
- Made the column `fileSize` on table `PortfolioImage` required. This step will fail if there are existing NULL values in that column.
|
|
|
|
*/
|
|
-- DropIndex
|
|
DROP INDEX "PortfolioImage_albumId_layoutGroup_layoutOrder_idx";
|
|
|
|
-- DropIndex
|
|
DROP INDEX "PortfolioImage_typeId_year_layoutGroup_layoutOrder_idx";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "PortfolioImage" DROP COLUMN "layoutGroup",
|
|
DROP COLUMN "layoutOrder",
|
|
ALTER COLUMN "fileType" SET NOT NULL,
|
|
ALTER COLUMN "fileSize" SET NOT NULL;
|