ALTER TABLE authorization_hosts
    ADD COLUMN IF NOT EXISTS lan_ip VARCHAR(64) NOT NULL DEFAULT ''
        AFTER hostname;

ALTER TABLE audit_events
    ADD COLUMN IF NOT EXISTS lan_ip VARCHAR(64) NOT NULL DEFAULT ''
        AFTER source_ip;

INSERT IGNORE INTO schema_migrations (version) VALUES (3);
