Issue #2039451 by DamienMcKenna, hswong3i: Fixed download_count.ip_address is type varchar but its default 0 is PHP type integer.