Modify ↓
Ticket #416 (closed defect: invalid)
dbdeploy task does not comply with dbdeploy guidelines
| Reported by: | Jean-Marc Fontaine | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.1 |
| Component: | phing-tasks-ext | Version: | 2.3.3 |
| Keywords: | Cc: |
Description
The dbdeploy task makes the undo section mandatory while dbdeploy documentation says "You can optionally add an undo section to your script."
Moreover the undo tag is not correct in the dbdeploy task. It looks for "– @UNDO" while dbdeploy indicates "–@UNDO" should be used.
See http://code.google.com/p/dbdeploy/wiki/GuidelinesForUsingDbdeploy.
Attachments
Change History
comment:3 Changed 12 months ago by tomasz
I confirm this bug. DbDeployTask is NOT WORKING when delta script is missing @UNDO section. Whole contents of delta script is added to undooutputfile, when missing this section!
Guildlines says:
8. You can optionally add an undo section to your script. [...]
Note: See
TracTickets for help on using
tickets.

What are you suggesting exactly? That dbdeploy should not write the undo part to undoOutputFile (defaults to 'dbdeploy_undo.sql') unless the attribute is explicitly set?
The "-@UNDO" issue was reported in #397 and fixed in r636.