15 lines
471 B
PL/PgSQL
15 lines
471 B
PL/PgSQL
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;
|