mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-09-28 17:57:56 +03:00
[general] Add database test
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package icu.samnyan.aqua;
|
||||
|
||||
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author sam_nya (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Configuration
|
||||
public class FlywayTestConfig {
|
||||
|
||||
@Bean
|
||||
public FlywayMigrationStrategy clean() {
|
||||
return flyway -> {
|
||||
flyway.clean();
|
||||
flyway.migrate();
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user