stock-management-demo/prisma/migrations/20250425200121_fix_database/migration.sql

20 lines
663 B
SQL

/*
Warnings:
- You are about to drop the column `sender_id` on the `MantisComment` table. All the data in the column will be lost.
- You are about to drop the column `reporter_id` on the `MantisIssue` table. All the data in the column will be lost.
*/
-- DropForeignKey
ALTER TABLE "MantisComment" DROP CONSTRAINT "MantisComment_sender_id_fkey";
-- DropForeignKey
ALTER TABLE "MantisIssue" DROP CONSTRAINT "MantisIssue_reporter_id_fkey";
-- AlterTable
ALTER TABLE "MantisComment" DROP COLUMN "sender_id",
ADD COLUMN "sender_username" TEXT;
-- AlterTable
ALTER TABLE "MantisIssue" DROP COLUMN "reporter_id",
ADD COLUMN "reporter_username" TEXT;