1 2
ALTER TABLE users ADD COLUMN last_seen timestamp(6) NULL; UPDATE users SET last_seen=lastmessage;