Refactor[BE] adjustment stock handling: remove stock_log_id, update relations, and enhance transfer logging

This commit is contained in:
aguhh18
2026-01-26 16:26:20 +07:00
parent 258fd1d7e0
commit 1572dfd0b8
6 changed files with 33 additions and 45 deletions
@@ -0,0 +1,3 @@
ALTER TABLE adjustment_stocks ADD COLUMN stock_log_id INTEGER;
CREATE INDEX idx_adjustment_stocks_stock_log_id ON adjustment_stocks (stock_log_id);
@@ -0,0 +1 @@
ALTER TABLE adjustment_stocks DROP COLUMN IF EXISTS stock_log_id;