@brandboostinggmbh/observable-workflows 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -238,6 +238,11 @@ async function createIndexes(db) {
|
|
|
238
238
|
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_workflows_parent_instance_id ON WorkflowTable (parentInstanceId)`).run();
|
|
239
239
|
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_workflows_trigger_id ON WorkflowTable (triggerId)`).run();
|
|
240
240
|
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_workflows_start_time ON WorkflowTable (startTime)`).run();
|
|
241
|
+
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_workflows_tenant_id ON WorkflowTable (tenantId)`).run();
|
|
242
|
+
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_workflows_instance_id ON WorkflowTable (instanceId)`).run();
|
|
243
|
+
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_workflows_status ON WorkflowTable (workflowStatus)`).run();
|
|
244
|
+
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_steps_instance_id ON StepTable (instanceId)`).run();
|
|
245
|
+
await db.prepare(`CREATE INDEX IF NOT EXISTS idx_logs_instance_id ON LogTable (instanceId)`).run();
|
|
241
246
|
}
|
|
242
247
|
/**
|
|
243
248
|
* Main migration function that ensures all tables exist and are up-to-date.
|