Fixes #1173 Field 'lastip' doesn't have a default value

#1173