Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 720d47fae476b0d38477ae4401697d372b1ea2bc |
| Branch | feature/opportunity-to-outcome |
| Path or archive member | db/migrations/0035_bls_wages_natural_key.sql |
| Original SHA-256 | 544269ba59b218f2ce71c77fb75cee6e57617d3c01b42ac49cc775003ff091ff |
| Git blob SHA | 1aeb1fe3520e6516babc38b6f1c84060a1d9ed88 |
| Reading-copy SHA-256 | 544269ba59b218f2ce71c77fb75cee6e57617d3c01b42ac49cc775003ff091ff |
Every recorded occurrence
These 11 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | feature/opportunity-to-outcome | 720d47fae476b0d38477ae4401697d372b1ea2bc | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | collision-deconfliction | 4ee5a09972608ed89f8377c6665542d5f450f0a6 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | m5-price-to-win | 41000ad30fff4129fdaf5ec84e15ba14c27d4890 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | master | 1e9249840a4302ec82e123b9c9cb6f75badea3e4 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | mag-substrate | b82c7100a492dec67dfd1eda6b3f53def859be35 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | time-to-fill-survival | b66e1e505863d4f17741a4b9ede73509e45bd6c6 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | presentation-readiness | eb574acaa29d71ce4d0f852572e87c275c79fdb7 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | vendor-intelligence | fe9796a19c261951d3f2565206c0c1b5ac294465 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | phase2-connectors | e038d4c687aec16f8bd9bc4d907eea14d91f8704 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | feature/aioe-upgrade | 2178e7298d0e5d9af83afa12402fd587f0ba6ed8 | Open original |
| Janady13/missionmatch / db/migrations/0035_bls_wages_natural_key.sql | capture-readiness | bae6af7cb2997e819174a9e9cfff5e16067a1975 | Open original |
Recovered source transcript
Download complete source text ↓18 lines · 1.0 KB
-- +goose Up
-- National OEWS wage expansion (M5 Phase 1). The national wage sync (cmd/oews-national-sync) upserts one
-- row per (occupation_code, area, metric), so it needs a UNIQUE on that natural key to upsert on. This is
-- ADDITIVE and safe: the existing HI and NM Galapagos rows the rates sync writes are already unique on
-- (occupation_code, area, metric) because that sync emits exactly one series per occupation, area, and
-- metric, so the constraint is satisfied by the current data. bls_wages stays a GLOBAL public reference
-- table (no organization_id, outside Row Level Security); this is a constraint, not an RLS change.
--
-- The constraint is named and additive so it can be dropped cleanly on rollback without touching the
-- series_id primary key, which stays the identity of a row.
ALTER TABLE bls_wages
ADD CONSTRAINT bls_wages_occ_area_metric_key UNIQUE (occupation_code, area, metric);
-- +goose Down
ALTER TABLE bls_wages
DROP CONSTRAINT IF EXISTS bls_wages_occ_area_metric_key;