Created
December 23, 2011 15:00
-
-
Save schakko/1514418 to your computer and use it in GitHub Desktop.
Database migration workflow sample in XML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<db-workflow> | |
<defaults> | |
<var key="server">test</var> | |
<var key="test">${server}_name</var> | |
</default> | |
<workflows> | |
<workflow name="update"> | |
<vars> | |
<ask_for var="server" /> | |
<ask_for var="user" /> | |
<ask_for var="password" /> | |
<ask_for var="database" /> | |
</vars> | |
<actions> | |
<execute with-compile="true" result-to-var="latest">%sql_script_command SELECT* FROM schema_version</execute> | |
<execute with-compile="true">handlers/lock_database_template.sql</execute> | |
<execute-dir>handlers/</execute-dir> | |
<execute-dir by-order="true">tables/</execute-dir> | |
</action> | |
</workflow> | |
</workflows> | |
</db-workflow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment