Class AbstractRemoveBatch4Task2Tables
java.lang.Object
org.flywaydb.core.api.migration.BaseJavaMigration
org.springframework.cloud.dataflow.common.flyway.AbstractMigration
org.springframework.cloud.dataflow.server.db.migration.AbstractRemoveBatch4Task2Tables
- All Implemented Interfaces:
org.flywaydb.core.api.migration.JavaMigration
- Direct Known Subclasses:
V12__Remove_Task2_Batch4_Support
,V12__Remove_Task2_Batch4_Support
,V13__Remove_Task2_Batch4_Support
,V13__Remove_Task2_Batch4_Support
,V13__Remove_Task2_Batch4_Support
,V14__Remove_Task2_Batch4_Support
public abstract class AbstractRemoveBatch4Task2Tables
extends org.springframework.cloud.dataflow.common.flyway.AbstractMigration
Base implementation for removing Task v2 and Batch v4 schema.
Also removing the BOOT3_ prefix from Batch v5 and Task v3 tables.
- Author:
- Glenn Renfro
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Removes views for TaskV2/BatchV4 TaskV3/BatchV5 views.List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Renames the spring batch V4 tables adding a V2_ prefix.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Renames the spring batch V5 tables removing the BOOT3_ prefix.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Renames the spring-cloud-task V2 tables adding a V2_ prefix.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Renames the spring-cloud-task V3 tables removing the BOOT3_ prefix.Methods inherited from class org.springframework.cloud.dataflow.common.flyway.AbstractMigration
migrate
Methods inherited from class org.flywaydb.core.api.migration.BaseJavaMigration
canExecuteInTransaction, extractVersionAndDescription, getChecksum, getDescription, getVersion, init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flywaydb.core.api.migration.JavaMigration
getResolvedMigration, getType
-
Constructor Details
-
AbstractRemoveBatch4Task2Tables
public AbstractRemoveBatch4Task2Tables()
-
-
Method Details
-
getCommands
- Overrides:
getCommands
in classorg.springframework.cloud.dataflow.common.flyway.AbstractMigration
-
renameTask3Tables
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> renameTask3Tables()Renames the spring-cloud-task V3 tables removing the BOOT3_ prefix.- Returns:
- the list of sql commands
-
renameBatch5Tables
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> renameBatch5Tables()Renames the spring batch V5 tables removing the BOOT3_ prefix.- Returns:
- the list of sql commands
-
renameTask2Tables
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> renameTask2Tables()Renames the spring-cloud-task V2 tables adding a V2_ prefix.- Returns:
- the list of sql commands
-
renameBatch4Tables
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> renameBatch4Tables()Renames the spring batch V4 tables adding a V2_ prefix.- Returns:
- the list of sql commands
-
dropBoot3Boot2Views
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> dropBoot3Boot2Views()Removes views for TaskV2/BatchV4 TaskV3/BatchV5 views.- Returns:
- the list of sql commands
-