Change domain on queues

Hi,

I need to migrate the domain on RT.
I modifiy all paramenters (WebDomain, WebBaseURL,…) into RT_SiteConfig.pm and /etc/aliases but need to replace on queues.

Is necesary to modify the domain on queues inside RT or can be change directly on database? there’s any guide to do it?