It really shouldn’t be all that difficult to combine these databases into one. You’d just need to think through the process a little bit and make sure that you have the proper columns to capture the different data schemas and you’re maintaining the unique info that you need. The most difficult issue might be making sure that linked tables within a database stay linked when moved to the new one (if you have tables like this), but there’s always a way to resolve that (I usually like to do bulk finds and replaces in a text editor and then import, for example adding 10,000 to all of the ids in the first database, 20,000 to those in the 2nd, etc., but it can also be done using MySQL commands, PHP, and probably lots of other methods).
-
☆ A M B ☆
- 2,475 Posts
If you’re concerned about maintaining the original unique keys from the database tables, you may have to add a few "translation tables" -- every time I interact with a web API or deal with another vendor’s unique key, I make sure I have a translation table that uses OUR primary and says what THEIR primary key is. It just gives us a lot more flexibility when it comes to looking things up... you have to do a few SQL joins, but I’ve found that you just can’t expect anyone else to provide you with unique primary keys.
ZAP is right... it’s generally not difficult to unify databases... provided that there’s a sensible and consistent way for all that data to live under one roof (in one table in this case?).