Files
ssp/db/migrations/2026-11-09-reuse-tray-positions.sql
T

15 lines
471 B
PL/PgSQL
Raw Normal View History

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;