<!DOCTYPE html>
        <html>
        <head>
            <title>Update Clients Table</title>
            <style>
                body { font-family: Arial, sans-serif; margin: 20px; line-height: 1.6; }
                h1, h2 { color: #333; }
                .success { color: green; }
                .error { color: red; }
                .info { color: blue; }
                .warning { color: orange; }
                pre { background-color: #f4f4f4; padding: 10px; border: 1px solid #ddd; overflow: auto; }
                .actions { margin-top: 20px; }
                button, .button { 
                    padding: 8px 16px; 
                    background-color: #4CAF50; 
                    color: white; 
                    border: none; 
                    cursor: pointer;
                    text-decoration: none;
                    display: inline-block;
                    margin-right: 10px;
                }
                button:hover, .button:hover { background-color: #45a049; }
                table { border-collapse: collapse; width: 100%; }
                th, td { padding: 8px; text-align: left; border: 1px solid #ddd; }
                th { background-color: #f2f2f2; }
            </style>
        </head>
        <body>
            <h1>Update Clients Table Structure</h1><p class='info'>Executing SQL statements to update table structure...</p><p class='info'>Column already exists, skipping: -- Add street address column
ALTER TABLE clients ADD COLUMN street_address VARCHAR(255) DEFAULT NULL AFTER country</p><p class='info'>Column already exists, skipping: -- Add state/province column
ALTER TABLE clients ADD COLUMN state VARCHAR(100) DEFAULT NULL AFTER street_address</p><p class='info'>Column already exists, skipping: -- Add zip/postal code column
ALTER TABLE clients ADD COLUMN zip VARCHAR(20) DEFAULT NULL AFTER state</p><p class='info'>Column already exists, skipping: -- Add open balance amount column
ALTER TABLE clients ADD COLUMN open_balance DECIMAL(10,2) DEFAULT 0.00 AFTER zip</p><p class='info'>Column already exists, skipping: -- Add attachments count column
ALTER TABLE clients ADD COLUMN attachments INT(11) DEFAULT 0 AFTER open_balance</p><p class='error'>Error: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_street_address'</p></body></html>