mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 11:33:11 +00:00
Upgrade to Flyway 8.2.x to support h2 v2
This commit is contained in:
@@ -762,7 +762,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.flywaydb</groupId>
|
<groupId>org.flywaydb</groupId>
|
||||||
<artifactId>flyway-core</artifactId>
|
<artifactId>flyway-core</artifactId>
|
||||||
<version>6.5.7</version>
|
<version>8.2.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
|
@@ -49,6 +49,16 @@ public class EntityTypeServiceInitializer implements Callback {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback name, Flyway will use this to sort the callbacks alphabetically before executing them
|
||||||
|
* @return The callback name
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getCallbackName() {
|
||||||
|
// Return class name only (not prepended by package)
|
||||||
|
return EntityTypeServiceInitializer.class.getSimpleName();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean supports(Event event, org.flywaydb.core.api.callback.Context context) {
|
public boolean supports(Event event, org.flywaydb.core.api.callback.Context context) {
|
||||||
// Must run AFTER all migrations complete, since it is dependent on Hibernate
|
// Must run AFTER all migrations complete, since it is dependent on Hibernate
|
||||||
|
@@ -51,6 +51,16 @@ public class GroupServiceInitializer implements Callback {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback name, Flyway will use this to sort the callbacks alphabetically before executing them
|
||||||
|
* @return The callback name
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getCallbackName() {
|
||||||
|
// Return class name only (not prepended by package)
|
||||||
|
return GroupServiceInitializer.class.getSimpleName();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events supported by this callback.
|
* Events supported by this callback.
|
||||||
* @param event Flyway event
|
* @param event Flyway event
|
||||||
|
@@ -97,6 +97,16 @@ public class PostgreSQLCryptoChecker implements Callback {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback name, Flyway will use this to sort the callbacks alphabetically before executing them
|
||||||
|
* @return The callback name
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getCallbackName() {
|
||||||
|
// Return class name only (not prepended by package)
|
||||||
|
return PostgreSQLCryptoChecker.class.getSimpleName();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events supported by this callback.
|
* Events supported by this callback.
|
||||||
* @param event Flyway event
|
* @param event Flyway event
|
||||||
|
@@ -101,6 +101,16 @@ public class RegistryUpdater implements Callback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback name, Flyway will use this to sort the callbacks alphabetically before executing them
|
||||||
|
* @return The callback name
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getCallbackName() {
|
||||||
|
// Return class name only (not prepended by package)
|
||||||
|
return RegistryUpdater.class.getSimpleName();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events supported by this callback.
|
* Events supported by this callback.
|
||||||
* @param event Flyway event
|
* @param event Flyway event
|
||||||
|
@@ -73,6 +73,16 @@ public class SiteServiceInitializer implements Callback {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The callback name, Flyway will use this to sort the callbacks alphabetically before executing them
|
||||||
|
* @return The callback name
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getCallbackName() {
|
||||||
|
// Return class name only (not prepended by package)
|
||||||
|
return SiteServiceInitializer.class.getSimpleName();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events supported by this callback.
|
* Events supported by this callback.
|
||||||
* @param event Flyway event
|
* @param event Flyway event
|
||||||
|
Reference in New Issue
Block a user