feat(production): 修改订单加工位置不一致问题
-创建订单时解除所有占用 -修改数据库位置唯一约束 -严格按照订单起始位置分配 -订单启动时重新初始化位置
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
begin;
|
||||
|
||||
-- Current physical occupancy is represented by tray_slots. Historical
|
||||
-- workpieces may keep the same tray position across different orders.
|
||||
drop index if exists public.ux_workpieces_tray_position;
|
||||
|
||||
insert into public.schema_version (id, version, description)
|
||||
values (1, 11, 'Allow historical workpieces to reuse tray positions')
|
||||
on conflict (id) do update
|
||||
set version = excluded.version,
|
||||
description = excluded.description,
|
||||
updated_at = now();
|
||||
|
||||
commit;
|
||||
Reference in New Issue
Block a user