mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 12:52:13 +01:00
18 lines
595 B
SQL
18 lines
595 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `imageId` on the `Article` table. All the data in the column will be lost.
|
|
- You are about to drop the `Image` table. If the table is not empty, all the data it contains will be lost.
|
|
- Added the required column `imageUrl` to the `Article` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- DropForeignKey
|
|
ALTER TABLE "Article" DROP CONSTRAINT "Article_imageId_fkey";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "Article" DROP COLUMN "imageId",
|
|
ADD COLUMN "imageUrl" TEXT NOT NULL;
|
|
|
|
-- DropTable
|
|
DROP TABLE "Image";
|