Parameters for <sqlFile> tags


It’s still me and my parameters on sqlFile.

Since version 3.1.0, they are correctly taken into account inside sql File.

Now you can have :

changeSet1.xml :

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <databaseChangeLog
  3.   xmlns=""
  4.   xmlns:xsi=""
  5.   xsi:schemaLocation="

  7. Idea : Being able to define parameters on different levels.

    Parameters on top level are usefull for many projects, but they can also be usefull if they are defined on :

    • changeSet level
      - and levels

    I don’t know if I’m the only one trying to use it this way, but I really think it would be a great feature.

I created and to track the features.

The reason I split them up is because while both are useful, parameters may work better. The paramter logic currently works like it does in Ant where once a parameter is set, the value cannot be changed. That has advantages, but it makes it so you can’t override values in a changset or changelog without breaking that logic and introducing backwards compatibility issues. 

It is a common request and there are ways to implement it, though, like adding a “override=true” flag or a scope=“changelog|changeset|global” flag