Change Company Name

Moderator: crythias

Post Reply
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Change Company Name

Post by tnieman »

One of the companies in our database has been acquired by another company.

We need to update all of the customers we have in the database from the old company to the new company.

If their email address is changing too, we would have to update that as well. Old tickets from users from that company are not updating the information.

Are we going about this wrong? They still need to see the tickets they have created. Do we need to update the tickets as well?

Could we just leave their log in the same and only change the email address and the company id?

Tom
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change Company Name

Post by crythias »

Here's what we did:
1) change the Company's CustomerID to something relevant to the new name (newcustomerid)
2) Generic Agent change all tickets with CustomerID OldName to newcustomerid
3) modified the customer_user table in the database:

Code: Select all

update customer_user set email=replace(email, '@oldname.com', '@newname.com'), customer_id="newcustomerid" where customer_id = "oldcustomerid"
4) ... profit.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply