2.4 KiB
2.4 KiB
Release Notes - v1.3.84
Release Date: 2. januar 2026
🔧 Database Migration
Timetracking Approval Columns
- Added migration for missing approval columns in
tmodule_timestable - Required for production - local development already has these columns
Columns Added (if missing):
approved_hoursDECIMAL(10,2) - Godkendte timerrounded_toDECIMAL(10,2) - Afrundingsinterval brugtapproval_noteTEXT - GodkendelsesnotebillableBOOLEAN DEFAULT TRUE - Skal faktureresis_travelBOOLEAN DEFAULT FALSE - Indeholder kørselapproved_atTIMESTAMP - Tidspunkt for godkendelseapproved_byINTEGER - Bruger der godkendte
Indexes Added:
idx_tmodule_times_status- For hurtigere status queriesidx_tmodule_times_approved_at- For hurtigere approval queries
📝 Files Changed
migrations/053_timetracking_approval_columns.sql- New migration file
🚀 Deployment Instructions
CRITICAL - Run Migration First!
På produktionsserveren:
-
SSH til serveren:
ssh bmcadmin@172.16.31.183 -
Naviger til projekt:
cd /opt/bmc_hub git fetch --tags git checkout v1.3.84 -
Kør migration (VIGTIGT!):
# Med podman: podman exec bmc-hub-postgres psql -U bmcnetworks -d bmc_hub -f /app/migrations/053_timetracking_approval_columns.sqlELLER kopier filen først hvis mounted wrong:
podman cp migrations/053_timetracking_approval_columns.sql bmc-hub-postgres:/tmp/ podman exec bmc-hub-postgres psql -U bmcnetworks -d bmc_hub -f /tmp/053_timetracking_approval_columns.sql -
Genstart API:
podman restart bmc-hub-api -
Verificer:
# Test godkendelse i wizard # Tjek logs for fejl podman logs -f bmc-hub-api | grep -E "(Error|✅|❌)"
⚠️ Breaking Changes
None - backwards compatible migration
📊 Impact
- Fixes approval failures on production
- Safe to run - checks if columns exist before adding
- No data loss risk
🔍 Why This Was Needed
Production database was missing approval columns that exist in development:
- Local dev had columns from previous migrations
- Production was created before these columns were added
- This migration ensures both environments have same schema
Git Tag: v1.3.84
Previous Version: v1.3.83
Migration: 053_timetracking_approval_columns.sql