807f6c2087
feat: add purchase receipts management with create, update, find, and delete functionalities feat: implement sales invoice items management with create, update, find, and delete functionalities feat: add sales invoices management with create, update, find, and delete functionalities feat: implement stock adjustments management with create, update, find, and delete functionalities feat: add stock balance retrieval functionality feat: implement stock movements management with create, update, find, and delete functionalities
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`);
|