DdlUtils
  1. DdlUtils
  2. DDLUTILS-215

Allow custom ModelChanges for altering a database

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      The Platform interface allows for upgrading a database from one model to another using the getAlterModelSql() method. This method tries to automatically convert from one model to another. In some cases it may be useful to allow the caller to provide for the changes that should be processed instead of automatically determining the changes.

      I'm attaching a patch that makes the PlatformImplBase.processChanges() method available on the Platform interface, thereby allow the caller to apply a custom list of changes. Next to that, the patch introduces the CustomChange interface, through which the caller can define custom changes (e.g.: executing custom SQL statements).

      This patch may also fix #DDLUTILS-213

        Issue Links

          Activity

          Hide
          Rick Riemer added a comment -

          Note: the attached patch does not break the existing API

          Show
          Rick Riemer added a comment - Note: the attached patch does not break the existing API

            People

            • Assignee:
              Thomas Dudziak
              Reporter:
              Rick Riemer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development