Files
psp_api/prisma/migrations/20251208153255_apply_views/migration.sql
T

14 lines
593 B
SQL
Raw Normal View History

/*
Warnings:
- The primary key for the `stock_balance` table will be changed. If it partially fails, the table could be left without primary key constraint.
- You are about to drop the column `itemId` on the `stock_balance` table. All the data in the column will be lost.
- Added the required column `ProductId` to the `stock_balance` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `stock_balance` DROP PRIMARY KEY,
DROP COLUMN `itemId`,
ADD COLUMN `ProductId` INTEGER NOT NULL,
ADD PRIMARY KEY (`ProductId`);