SQL
CREATE TABLE pipeline_trace_attempts (
tenant_id VARCHAR(255) NOT NULL,
run_id VARCHAR(255) NOT NULL,
attempt_id VARCHAR(36) NOT NULL,
payload JSON NOT NULL,
PRIMARY KEY (tenant_id, run_id, attempt_id),
FOREIGN KEY(tenant_id, run_id) REFERENCES pipeline_trace_runs (tenant_id, run_id),
UNIQUE (tenant_id, attempt_id)
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
tenant_id |
VARCHAR(255) |
✓ | Rename | Drop | |
run_id |
VARCHAR(255) |
✓ | Rename | Drop | |
attempt_id |
VARCHAR(36) |
✓ | Rename | Drop | |
payload |
JSON |
Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
tenant_id |
pipeline_trace_runs.tenant_id |
run_id |
pipeline_trace_runs.run_id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| sqlite_autoindex_pipeline_trace_attempts_1 |
|
✓ | SQL | Drop |
| sqlite_autoindex_pipeline_trace_attempts_2 |
|
✓ | SQL | Drop |