[general] Add database test

This commit is contained in:
samnyan
2020-12-25 14:16:55 +08:00
parent ff5eab48c7
commit 1ccba38aee
12 changed files with 1105 additions and 11 deletions
@@ -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();
};
}
}