Rename Impact — affected code & pages

Everything that changes when d_* becomes standard · 2026-09-26 00:12 UTC · Data model diff → · Docs index

✓ Deployed to production. Merged to main and live on mapp-instance after a clean fresh install (2026-09-30): alembic head 016, schema fully standardized (0 d_* tables in dori). This page is the historical record of the change.
77Files affected
1,868Identifier hits
43Tables renamed
57Columns renamed
Source of truth is external. Both ORM models are documented as a "canonical port of dori_db". A rename done only in this repo diverges from dori_db; to stay consistent the rename should originate there and be re-ported here.
The React app is a separate repo. The live dashboard is smartvision_va (fe-icd-react). Only Playwright tests live here — any API field-name change (columns are serialized to JSON by attribute name) must be mirrored in smartvision_va too.
MLC writes by name. The inference pipeline (MLC image / dorisdk) writes to d_inference_detectobject.*. Renaming that schema breaks live inference until the MLC is updated.

By areafiles touching any d_* identifier

AreaFilesHits
alembic18899
services/config_app19375
common/dori_model3164
services/job_app5120
unit_tests2100
services/warehouse_app660
common/dori_utils432
services/analytics_app226
services/cim521
services/dmf121
fe_tests315
system_test313
scripts113
services/dim24
services/monitor23
services/edge_simulator12
Total771,868

Hotspot filesmost identifier hits — review these first

FileHits
alembic/sql/create_dori_schema.sql181
alembic/versions/013_drop_more_unused_tables.py149
common/dori_model/dModel.py146
alembic/sql/populate_data.sql116
alembic/versions/011_drop_unused_tables.py105
services/job_app/src/web/jobs.py82
alembic/versions/007_drop_region_hierarchy.py67
unit_tests/test_job_app.py61
services/config_app/src/web/infra.py56
alembic/sql/init_d_inference_detectobject.sql54
alembic/versions/003_merge_d_monitor.py47
services/config_app/src/model/pModel.py45
services/config_app/src/web/compat.py43
unit_tests/test_config_app.py39
alembic/versions/005_mlc_config_junction.py35
alembic/versions/010_rename_auth_aws_to_cloud_store.py32
services/config_app/src/web/ops.py30
services/config_app/src/service/mlc_config_service.py30
services/job_app/src/service/mlc_dispatch.py29
common/dori_utils/seed.py27
services/config_app/src/service/company_service.py26
services/config_app/src/service/mlc_service.py25
alembic/versions/002_warehouse_scan_event.py23
services/config_app/src/service/users.py22
services/config_app/src/service/bundle_service.py22

Change checklistorder of operations for the rename

#StepWhere
1Rename tables/columns/schema (data-preserving ALTER … RENAME)new alembic migration (model on 010_rename_auth_aws_to_cloud_store.py)
2Update canonical DDL + seedalembic/sql/create_dori_schema.sql, init_d_inference_detectobject.sql, populate_data.sql
3Rename ORM __tablename__, column attributes, FK string targets, SCHEMAcommon/dori_model/dModel.py, dIdoModel.py
4Update raw SQL + ORM attribute access in servicesservices/* (config_app, job_app hottest)
5Update testsunit_tests/, fe_tests/, system_test/
6Regenerate this data model doc/docs/database-data-model.html
7Mirror API field renames in the FE reposmartvision_va (external)
8Coordinate MLC image update, then deploy inference schema renameMLC / dori_db (external)