-- Ensure wp_version column exists in wordpress_sites table
-- This column may be missing in some installations

USE whp;

-- Add wp_version column if it doesn't exist
ALTER TABLE wordpress_sites 
ADD COLUMN IF NOT EXISTS wp_version VARCHAR(20) AFTER site_path;