deploy(prod): DBA SQL trimmed to the 104 indexes + a definition check vs QA (data half already applied); scadaproj#59
Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
This commit is contained in:
@@ -44,7 +44,7 @@ Ask the owner for each of these explicitly; none is implied by the staging reque
|
||||
|
||||
| Needed for | What | Question | Where it goes |
|
||||
|---|---|---|---|
|
||||
| Phase 3, 5 | **Q1 partly answered 2026-11-20** (owner file `ScadaBridge/prod.txt`): `wondersqlpd.zmr.zimmer.com` (= `WONDER-SQL-VP03`, SQL 2022 CU16), DB `ScadaBridge`, SQL login `wwpdsbrw` (db_datareader + db_datawriter, **no DDL**). The DB was pre-built by a DBA at 2026-11-20 09:37: all 46 tables, PKs, 27 FKs, defaults, computed columns and the AuditLog partition scheme match QA, all tables empty, **but none of the 104 nonclustered/unique indexes, no `__EFMigrationsHistory` rows, no `schema_version` rows**. As is, the central refuses to start (65 pending migrations) and the zbauth migrator's `CREATE INDEX` is denied. **DML half DONE 2026-11-20 19:48Z** as `wwpdsbrw` (`sql\prod-app-dml-setup.sql`: 65 history rows, both `schema_version` v1, seed ids 1–5, plus `sb-role-mappings-prod.sql` → `_PROD` ids 6–10). **⏰ REMINDER (scadaproj#59): the DBA still owes the 104 indexes** → `sql\prod-complete-dba-schema.sql` (only its `CREATE INDEX` lines do anything now). **Do not start the central until index count = 104.** Still open: backup target | Q1 | value files `ScadaBridge__Database__ConfigurationDb.txt` and `Secrets__SqlServer__ConnectionString.txt` (`User ID=wwpdsbrw`; password from `prod.txt`, move it to the Keychain) |
|
||||
| Phase 3, 5 | **Q1 partly answered 2026-11-20** (owner file `ScadaBridge/prod.txt`): `wondersqlpd.zmr.zimmer.com` (= `WONDER-SQL-VP03`, SQL 2022 CU16), DB `ScadaBridge`, SQL login `wwpdsbrw` (db_datareader + db_datawriter, **no DDL**). The DB was pre-built by a DBA at 2026-11-20 09:37: all 46 tables, PKs, 27 FKs, defaults, computed columns and the AuditLog partition scheme match QA, all tables empty, **but none of the 104 nonclustered/unique indexes, no `__EFMigrationsHistory` rows, no `schema_version` rows**. As is, the central refuses to start (65 pending migrations) and the zbauth migrator's `CREATE INDEX` is denied. **DML half DONE 2026-11-20 19:48Z** as `wwpdsbrw` (`sql\prod-app-dml-setup.sql`: 65 history rows, both `schema_version` v1, seed ids 1–5, plus `sb-role-mappings-prod.sql` → `_PROD` ids 6–10). **⏰ REMINDER (scadaproj#59): the DBA still owes the 104 indexes** → `sql\prod-complete-dba-schema.sql` (sha `3e05e1673fb4…`: 104 `CREATE INDEX` + a read-only definition check vs QA; expect 104 / 0 mismatches). **Do not start the central until index count = 104.** Still open: backup target | Q1 | value files `ScadaBridge__Database__ConfigurationDb.txt` and `Secrets__SqlServer__ConnectionString.txt` (`User ID=wwpdsbrw`; password from `prod.txt`, move it to the Keychain) |
|
||||
| Phase 4 | Prod Galaxy Repository SQL + alarm area | Q2 | `MxGateway__Galaxy__ConnectionString.txt`; replace `__Q2_ALARM_EXPRESSION__` in `mxgw.env` (`\\<GR node>\Galaxy!<area>`) |
|
||||
| Phase 6 | `SiteId` | Q8 | replace `__Q8_SITE_ID__` in both `appsettings.Site.json.prod-*` |
|
||||
| Phase 2–6 | Firewall: the §4 rows, incl. the Overview rows (5320; centrals → PAR 8084/5130) | Q5 | IT request; `preflight-prod.ps1` shows open / refused / timeout per path |
|
||||
|
||||
Reference in New Issue
Block a user