ALTER TABLE preferences ADD COLUMN endpoint_port INTEGER NOT NULL DEFAULT 4000 CHECK (endpoint_port BETWEEN 1 AND 65535);