Package org.tailormap.api.configuration
Class TailormapDatabaseMigration
java.lang.Object
org.tailormap.api.configuration.TailormapDatabaseMigration
Migrate the database using JPA entities, after Flyway has migrated and the entity manager is
initialized. When using Flyway callbacks, we can't use JPA.
-
Constructor Summary
ConstructorDescriptionTailormapDatabaseMigration
(CatalogRepository catalogRepository, FlywayMigrationResult migrationResult) -
Method Summary
-
Constructor Details
-
TailormapDatabaseMigration
public TailormapDatabaseMigration(CatalogRepository catalogRepository, FlywayMigrationResult migrationResult)
-
-
Method Details
-
databaseMigration
@PostConstruct public void databaseMigration()
-