chore: update migration
This commit is contained in:
parent
28d002ad65
commit
31ed48d190
4 changed files with 91 additions and 13 deletions
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
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");
|
||||
Loading…
Add table
Add a link
Reference in a new issue