Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create changelog table #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Corrected Syb-ase apply/undo templates
  • Loading branch information
Alan committed Feb 3, 2013
commit c56690731bd17b5236fb42ed56ee1ed9f6c0f04d
8 changes: 3 additions & 5 deletions dbdeploy-core/src/main/resources/syb-ase_apply.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
${script.content}

INSERT INTO ${changeLogTableName} (change_number, complete_dt, applied_by, description)
VALUES (${script.id?c}, getdate(), user_name(), '${script.description}')
GO
VALUES (${script.id?c}, getdate(), user_name(), '${script.description}')${separator}${delimiter}

COMMIT
GO
COMMIT${separator}${delimiter}

-- END CHANGE SCRIPT ${script}

[/#list]
[/#list]
8 changes: 3 additions & 5 deletions dbdeploy-core/src/main/resources/syb-ase_undo.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

${script.undoContent}

DELETE FROM ${changeLogTableName} WHERE change_number = ${script.id?c}
GO
DELETE FROM ${changeLogTableName} WHERE change_number = ${script.id?c}${separator}${delimiter}

COMMIT
GO
COMMIT${separator}${delimiter}

-- END UNDO OF CHANGE SCRIPT ${script}

[/#list]
[/#list]