-- ─────────────────────────────────────────────────────────────────────────────
-- 5K Car Care — Migration: Add `district` column to branches
-- Run this ONCE on your database before deploying the updated files
-- ─────────────────────────────────────────────────────────────────────────────

ALTER TABLE `branches`
  ADD COLUMN `district` varchar(100) NOT NULL DEFAULT '' AFTER `city`;

-- Pre-fill district = city for all existing rows
UPDATE `branches` SET `district` = `city` WHERE `district` = '';

-- ─────────────────────────────────────────────────────────────────────────────
-- DONE. Now deploy the updated PHP files.
-- ─────────────────────────────────────────────────────────────────────────────
