Modify

Ticket #416 (closed defect: invalid)

Opened 2 years ago

Last modified 12 months ago

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:1 Changed 2 years ago by mrook

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.

comment:2 Changed 2 years ago by mrook

  • Status changed from new to closed
  • Resolution set to invalid

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. [...]

comment:4 Changed 12 months ago by mrook

@tomasz: which version of Phing are you using?

comment:5 Changed 12 months ago by tomasz

2.4.1

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.