-------------- ALTER TABLE `login_attempts` ADD COLUMN `ip_address` VARCHAR(45) NULL DEFAULT NULL COMMENT 'Provenienza del tentativo; NULL = sconosciuta (righe anteriori al 08/2026)' AFTER `user_id`, ADD INDEX `idx_login_attempts_user_ip_time` (`user_id`, `ip_address`, `time_attempted`) -------------- ERROR 1060 (42S21) at line 26: Duplicate column name 'ip_address'