How to change the IP configuration via database

Hey team,
I would like to request your help because I need to change the IP MODE in all of my PXE deployed servers.

The version 2.8.5 cannot deploy machines if the IP MODE is configured as DHCP, so I have made changes on all machines with the status "ready’ but I’m unable to change the deployed machines without impact. I know that I can set it as broken and change the ip, but the problem here is when I set the machine as broken Maas shutdown the machine and generate an impact.

I did think about how can I do these changes by subnets directly via database, because I’m looking to change only the PXE interfaces and don’t touch in the other subnets.

Any help will be very appreciated. Thanks.