Commit d182f99
committed
Add _meta column to greenlight_pr_state
- Add sql/003 migration adding `_meta Tuple(bucket, key)` to
misc.greenlight_pr_state via ALTER TABLE ... ADD COLUMN IF NOT EXISTS
- Position `_meta` after `version` so it is the last ordinary column,
before the MATERIALIZED `_inserted_at`
Notes:
The clickhouse-replicator-s3 ingestion path (general_adapter) inserts
positionally with `SELECT *, (bucket, key) AS _meta`, so the S3
provenance tuple must be the trailing ordinary column for positional
alignment to hold. Applied manually to the live table (clee2000/huydhn);
there is no automated migration runner.
Signed-off-by: Jean Schmidt <contato@jschmidt.me>1 parent 6eb010b commit d182f99
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments