Commit 603acad
committed
feat(schema): add WorkerDeployment.externalId and task_runs_v2.external_deployment_id
Migrations only, no code reads them yet. Postgres: nullable non-unique externalId on WorkerDeployment plus a CONCURRENTLY-built (environmentId, externalId) index in its own migration file. ClickHouse: external_deployment_id String DEFAULT '' on task_runs_v2 (plain String, not LowCardinality - commit SHAs are high-cardinality). Part of task run version skew protection (TRI-12998).1 parent cffaa05 commit 603acad
4 files changed
Lines changed: 11 additions & 0 deletions
File tree
- internal-packages
- clickhouse/schema
- database/prisma
- migrations
- 20260818120000_add_worker_deployment_external_id
- 20260818120100_add_worker_deployment_environment_id_external_id_index
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2288 | 2288 | | |
2289 | 2289 | | |
2290 | 2290 | | |
| 2291 | + | |
2291 | 2292 | | |
2292 | 2293 | | |
2293 | 2294 | | |
| |||
2316 | 2317 | | |
2317 | 2318 | | |
2318 | 2319 | | |
| 2320 | + | |
2319 | 2321 | | |
2320 | 2322 | | |
2321 | 2323 | | |
| |||
0 commit comments