06/08 Optimize queries with indexes fixed
This commit is contained in:
@@ -560,6 +560,7 @@ phase1_projects_roles → phase6_features → phase7_mobile_api → phase8_notif
|
||||
→ phase18_issue_reported_by
|
||||
→ phase19_issue_mobile_photos
|
||||
→ phase20_inspector_assignments
|
||||
→ phase21_template_active
|
||||
→ phase21_performance_indexes ← HEAD
|
||||
```
|
||||
|
||||
@@ -573,6 +574,10 @@ flask db upgrade
|
||||
sudo systemctl restart gunicorn
|
||||
```
|
||||
|
||||
### phase21_template_active
|
||||
|
||||
Adds `active` boolean column to `inspection_templates` so templates can be deactivated without deletion. Inactive templates are hidden from the inspection-start form but remain accessible in the template management UI. Uses `INFORMATION_SCHEMA` column existence check — safe to re-run.
|
||||
|
||||
### phase19_issue_mobile_photos
|
||||
|
||||
Adds `mobile_photo_paths JSON NULL` to `issues` table. Stores extra evidence photos submitted from the iPad at issue-creation time, separate from `result_photos` (resolution photos) so they appear under "Photo Evidence" on the web. Uses `INFORMATION_SCHEMA` existence check — safe to re-run.
|
||||
|
||||
@@ -25,7 +25,7 @@ import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision = 'phase21_performance_indexes'
|
||||
down_revision = 'phase20_inspector_assignments'
|
||||
down_revision = 'phase21_template_active'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user