-- Migration: Add activity, units, and total_amount columns to work_allocations table -- Run this if you have an existing database without these columns ALTER TABLE work_allocations ADD COLUMN IF NOT EXISTS activity VARCHAR(100) AFTER sub_department_id; ALTER TABLE work_allocations ADD COLUMN IF NOT EXISTS units DECIMAL(10, 2) AFTER rate; ALTER TABLE work_allocations ADD COLUMN IF NOT EXISTS total_amount DECIMAL(10, 2) AFTER units;