How to merge Drupal database changes

前端 未结 4 1904
后悔当初
后悔当初 2020-12-31 16:31

We currently use an SVN repository to ensure everyone\'s local environments are kept up-to-date. However, Drupal website development is somewhat trickier in that any custom

4条回答
  •  生来不讨喜
    2020-12-31 17:04

    All that has been said above is true and good advice.. To answer your practical question, there are a number of recent modules that you could use to transport the changes done by the various developers.

    The "Features" modules is a cure the the described issue of Drupal often providing nice features, albeit storing lots of configs and structure in the DB. This module enables you to capture a feature and output it as a pseudo-module (qualifies as a module with .info and code-files and all). Here is how it works:

    1. Select functionality/feature to export
    2. The module analyses the modules, files, DB content that is required to rebuild that feature elsewhere
    3. The module creates a pseudo-module that contains the instructions in #3 and outputs everything (even SQL to rebuild the stuff in the DB) into a module package (as well as sets dependencies for other modules required)
    4. Install the pseudo-module on your new site and enable it
    5. The pseudo-module replicates the feature you exported rebuilding DB data and all

    And you can tell your boss you did it all manually with razor focus to avoid even 1 error ;) I hope this helps - http://drupal.org/project/features

提交回复
热议问题