-- Run this once in phpMyAdmin (select the database, then SQL tab).
-- Lets a server be authenticated either via username/password (as before)
-- or a static API token pasted directly from the panel.
ALTER TABLE servers
    ADD COLUMN auth_type VARCHAR(10) NOT NULL DEFAULT 'userpass' AFTER type,
    ADD COLUMN api_token VARCHAR(500) NULL AFTER password;
