feat: add orchestrator shadow observability
This commit is contained in:
@@ -351,9 +351,16 @@ export async function migrateSchema(pool) {
|
||||
data_json JSON NULL,
|
||||
created_at BIGINT NOT NULL,
|
||||
KEY idx_h5_agent_run_event_run (run_id, created_at),
|
||||
KEY idx_h5_agent_run_event_type_time (event_type, created_at),
|
||||
CONSTRAINT fk_h5_agent_run_event_run FOREIGN KEY (run_id) REFERENCES h5_agent_runs(id) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
|
||||
`);
|
||||
if (!(await indexExists(pool, 'h5_agent_run_events', 'idx_h5_agent_run_event_type_time'))) {
|
||||
await pool.query(
|
||||
`ALTER TABLE h5_agent_run_events
|
||||
ADD KEY idx_h5_agent_run_event_type_time (event_type, created_at)`,
|
||||
);
|
||||
}
|
||||
|
||||
// MindSpace conversation packages: additive provenance tables for grouping
|
||||
// images, files, pages, and publications created during a chat session.
|
||||
|
||||
Reference in New Issue
Block a user