19 lines
861 B
MySQL
19 lines
861 B
MySQL
|
|
/*
|
||
|
|
Warnings:
|
||
|
|
|
||
|
|
- The primary key for the `WorkProduct` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||
|
|
- You are about to drop the column `id` on the `WorkProduct` table. All the data in the column will be lost.
|
||
|
|
- The primary key for the `WorkService` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||
|
|
- You are about to drop the column `id` on the `WorkService` table. All the data in the column will be lost.
|
||
|
|
|
||
|
|
*/
|
||
|
|
-- AlterTable
|
||
|
|
ALTER TABLE "WorkProduct" DROP CONSTRAINT "WorkProduct_pkey",
|
||
|
|
DROP COLUMN "id",
|
||
|
|
ADD CONSTRAINT "WorkProduct_pkey" PRIMARY KEY ("workId", "productId");
|
||
|
|
|
||
|
|
-- AlterTable
|
||
|
|
ALTER TABLE "WorkService" DROP CONSTRAINT "WorkService_pkey",
|
||
|
|
DROP COLUMN "id",
|
||
|
|
ADD CONSTRAINT "WorkService_pkey" PRIMARY KEY ("workId", "serviceId");
|