RE: How to change Web ID of an existing portal instance

Rajeev K, modified 5 Years ago. New Member Posts: 3 Join Date: 3/2/20 Recent Posts
I have an existing portal instance with some virtual host 'aa.bb.com'. By mistake, I kept the Web ID value incorrectly. Now the Web ID is read-only. How to change the Web ID ?
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi,You can use  this  for updating company Information  
CompanyLocalServiceUtil.updateCompany(companyId, virtualHostname, mx, maxUsers, active)
.
Rajeev K, modified 5 Years ago. New Member Posts: 3 Join Date: 3/2/20 Recent Posts
Is it OK if I just change it via DB query?
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Rajeev K:

Is it OK if I just change it via DB query?
Canonical answer: https://liferay.dev/blogs/-/blogs/understanding-liferay-s-database
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
You shouldn't. Use the API.