MergeDB.php
This script takes two Drupal databases as the input (the development and the production databases) and generates a third database with the results of the
merge operation. The options of the merge operation can be configured in the companion MergeDB.xml file.

WARNING: although the script is not supposed to make any change in the input databases, making a backup before the execution of the script is strongly recommended.

The script needs to take some special actions for certain database tables, therefore it cannot work if the database contains any table which is "unknown" for it. It is probably quite straighforward to extend the MergeDB.php and the MergeDB.xml files in order to add new tables for your own needs, but it will require more in-depth understanding of the script which is not docummented here. Sorry!

Currently the script "knows" about the tables in the standard distribution of Drupal, plus the tables which are added by the following contributed modules:

- autologout
- cck
- commentaproval
- contemplate
- gmap
- i18n
- legal
- location
- nodegoto
- views

Once finished configuring the MergeDB.xml file, run the script:

php MergeDB.php
Download:
mergedb-4.7.x-1.1.tar.gz
(Apr 24 2008)
Contact Info:
Drupal User:
davidjava
Email: mergedb@gmail.com