15 lines
598 B
SQL
15 lines
598 B
SQL
-- Journal neúspěšných běhů plánovače (Solver: Infeasible po celém retry řetězci).
|
|
|
|
alter table ems.planning_run
|
|
add column if not exists error_text text;
|
|
|
|
comment on column ems.planning_run.error_text is
|
|
'Chybová zpráva u status=failed (typicky Solver: Infeasible); aktivní plán se nemění.';
|
|
|
|
comment on column ems.planning_run.status is
|
|
'Stav plánu: draft, approved, active, superseded, comparison (shadow běh), failed (solver selhal).';
|
|
|
|
create index if not exists idx_planning_run_site_failed
|
|
on ems.planning_run (site_id, created_at desc)
|
|
where status = 'failed';
|