feat: update work endpoints
This commit is contained in:
parent
39206a6d76
commit
51fd6b0589
4 changed files with 76 additions and 72 deletions
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the `WorkService` table. If the table is not empty, all the data it contains will be lost.
|
||||
- Added the required column `order` to the `Work` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "WorkService" DROP CONSTRAINT "WorkService_serviceId_fkey";
|
||||
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "WorkService" DROP CONSTRAINT "WorkService_workId_fkey";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Work" ADD COLUMN "order" INTEGER NOT NULL,
|
||||
ADD COLUMN "serviceId" TEXT;
|
||||
|
||||
-- DropTable
|
||||
DROP TABLE "WorkService";
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Work" ADD CONSTRAINT "Work_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
Loading…
Add table
Add a link
Reference in a new issue