14 lines
593 B
SQL
14 lines
593 B
SQL
|
|
/*
|
||
|
|
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`);
|