Package io.vertigo.database.migration
Interface MigrationManager
-
- All Superinterfaces:
io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Manager
- All Known Implementing Classes:
MigrationManagerImpl
public interface MigrationManager extends io.vertigo.core.node.component.ManagerMigrationManager is used to perform migration tasks on databases. It's mainly a question of creating/migration database schemas. Two type of tasks can be performed :- update : Update your database schema and data to the current version of your app
- check : Check that node and database are in a coherent state
- Author:
- mlaroche
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck(String connectionName)Check if database is ok.voidupdate(String connectionName)Perform all taks on database to make it up to date.
-
-
-
Method Detail
-
check
void check(String connectionName)
Check if database is ok.- Parameters:
connectionName- ConnectionProviderName (in the Vertigo's way). For example @seeSqlManager.MAIN_CONNECTION_PROVIDER_NAME
-
update
void update(String connectionName)
Perform all taks on database to make it up to date.- Parameters:
connectionName- ConnectionProviderName (in the Vertigo's way). For example @seeSqlManager.MAIN_CONNECTION_PROVIDER_NAME
-
-