Jump to content

Merging multiple databases


kmm2908

Recommended Posts

We are just starting on creating a script to merge multiple WHMCS databases into one installation and I wanted to see if I could pick any brains that have already accomplished this.

 

Can anyone help with a list of fields that we need to check for duplicates?

 

Obvious ones being clientid, emails, contactid, invoiceid, invoiceitemsid, ordernum, ordersid, transid, refundid, adminid, affiliateid, domainsid, productids, domainpricingid, packageid, hostingid, hostingaddonid, addonid...

 

Any other tips or any code anyone wants to share would be gratefully received. :)

 

Thanks in advance for anyone that can help.

Link to comment
Share on other sites

Yep thanks for above. I should have said that I have already tried the merge script but it doesn't cover what we need to do.

 

We want to import new data from new company but also keep it separate within WHMCS. We intend to use Client groups and a coded invoice system to achieve this.

Link to comment
Share on other sites

Yep thanks for above. I should have said that I have already tried the merge script but it doesn't cover what we need to do.

 

We want to import new data from new company but also keep it separate within WHMCS. We intend to use Client groups and a coded invoice system to achieve this.

 

Have you considered playing with the multi-brand mod by ModulesGarden? Might save you some development time/money and simply building an importer into the multibrand system: http://www.modulesgarden.com/products/whmcs/multibrand/features

Link to comment
Share on other sites

Thanks for the suggestion Alex. I have been talking to them but not sure what they have will cover what we need. Also too many posts about poor support and the product not being the finished article yet motivated me to start our own coding.

 

Anybody used the module and have an experience to share?

Link to comment
Share on other sites

@blakeh the biggest problem I had with it after taking a look is they have no import facility. So if you buy a new company you still have to handle the import process, which is a major task. Hence the reason we have decided to create our own import script and multi-site setup.

 

In fact without a proven import process to handle possible duplicate emails and database table id's I can't see the point of it.

Link to comment
Share on other sites

@blakeh the biggest problem I had with it after taking a look is they have no import facility. So if you buy a new company you still have to handle the import process, which is a major task. Hence the reason we have decided to create our own import script and multi-site setup.

 

In fact without a proven import process to handle possible duplicate emails and database table id's I can't see the point of it.

 

Did you discuss this with them? If I recall correctly, this is a feature they're working on and should have it included in the next update. Hopefully they can confirm that here.

Link to comment
Share on other sites

I honestly can't see using the script, just because the company we're buying, the products are a mess and we need to audit everything anyway. So we would manually enter the clients, enter the services, as they map to ours. After that point the thing I'd like to auto-import would be account notes and invoice history. Account notes should be easy but past invoices, I'm betting not so much.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated