Skip to content

IBM DevOps DBUpgrader - Process Steps

Rollback DB

Return the database to a previous version.

NameTypeDescriptionRequired
Current Version SQLStringAn SQL statement to obtain the current version of the database. Use a question mark (?) as the placeholder for the release name. Example: SELECT VER FROM DB_VERSION WHERE RELEASE_NAME = ?Yes
DB Driver JarStringThe path to the JAR file that contains the driver class. Example: lib/mysql-connector-java-5.1.20-bin.jar.Yes
Delete Version SQLStringAn SQL statement that deletes the release or version row from the database. Use a question mark (?) as a placeholder for the release name. Example: DELETE FROM DB_VERSION WHERE RELEASE_NAME = ?.Yes
Driver ClassnameStringThe name of the class that implements the java.sql.Driver command.Yes
PasswordPasswordThe password that is associated with the user ID to access the database.No
SQL File IncludeStringA pattern that defines the XML files to read for this rollback. Use an asterisk (*) as a wildcard. Example: upgrade_sql_*.xml or *.xml.Yes
SQL File pathStringThe path to the directory that contains the SQL files.Yes
Target VersionStringThe version to return the database to. This string corresponds to the <change> elements number.If a target version is specified, the database is not rolled back to a version before the specified version. Example: MySQL example:com.mysql.jdbc.Driver.No
URLStringThe URL of the database that the DevOps Deploy server uses to communicate with the database. For example, you can use the ${p:environment/db.url} property.Yes
Update Version SQLStringAn SQL statement to update the current version of the database. Use the first question mark (?) for the RELEASE_NAME value, and the second mark (?) for the VER value.Example: INSERT INTO DB_VERSION (RELEASE_NAME,VER) VALUES(?,?).Yes
UserStringThe user name for the account that has access to the database. The user account must have enough permissions to complete the SQL queries that you provide it.Yes

Upgrade DB

Update the database.

NameTypeDescriptionRequired
Current Version SQLStringThe SQL statement to obtain the current version of the database. Use a question mark (?) as the placeholder for the release name. Example: SELECT VER FROM DB_VERSION WHERE RELEASE_NAME = ?.Yes
DB Driver JarStringThe path to the JAR file that contains the driver class. Example: lib/mysql-connector-java-5.1.20-bin.jar.Yes
Delete Version SQLStringAn SQL statement that deletes the release or version row from the database. Use a question mark (?) as a placeholder for the release name value. Example: DELETE FROM DB_VERSION WHERE RELEASE_NAME = ?.Yes
Driver ClassnameStringThe name of class that implements the java.sql.Driver command.Yes
PasswordPasswordThe password that is associated with the user ID to access the database.No
SQL File IncludeStringA pattern that defines XML files to read for this upgrade. Use an asterisk (*) as a wildcard.Example: upgrade_sql_*.xml or *.xml.Yes
SQL File pathStringThe path to the directory that contains the SQL files.Yes
URLStringThe URL of the database that DevOps Deploy server uses to communicate with the database. For example, you can use the ${p:environment/db.url} property.Yes
Update Version SQLStringAn SQL statement to update the current version of the database. Use the first question mark (?) for the RELEASE_NAME value, and the second mark (?) for the VER value.Example: INSERT INTO DB_VERSION (RELEASE_NAME,VER) VALUES(?,?).Yes
UserStringThe user name for the account that has access to the database. The user account must have enough permissions to complete the SQL queries that you provide it.Yes