diff --git a/CLAUDE.md b/CLAUDE.md index 9959f3b..dbcfa7f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -560,7 +560,8 @@ phase1_projects_roles → phase6_features → phase7_mobile_api → phase8_notif → phase18_issue_reported_by → phase19_issue_mobile_photos → phase20_inspector_assignments - → phase21_performance_indexes ← HEAD + → phase21_template_active + → phase21_performance_indexes ← HEAD ``` ### phase21_performance_indexes @@ -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. diff --git a/migrations/versions/phase21_performance_indexes.py b/migrations/versions/phase21_performance_indexes.py index c6de309..1831f76 100644 --- a/migrations/versions/phase21_performance_indexes.py +++ b/migrations/versions/phase21_performance_indexes.py @@ -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