generateChangeLog creating two constraint lines in yml

When running the generateChangeLog command with a changelog file that is .yml each constraint is showing up with the tag constraints: twice so when you try and run an update it doesn’t pick up the constraints. Is there a certain way we should be running this to avoid the problem? Should it be

constraints:

constraint:

like

columns:

column: ??</div>

Here is a snippet of what it gives:

- createTable:</div>

    columns:</div>

    - column:</div>

        autoIncrement: true</div>

        constraints:</div>

          constraints:</div>

            primaryKey: true</div>

        name: EnvironmentID</div>

        type: INT</div></div></div>