Order DataSourceScriptDatabaseInitializer last
Change the order of `DataSourceScriptDatabaseInitializerDetector` so that it always runs last. This update allows script initialization to be combined with a high-level migration tool such as Flyway. Closes gh-26692
This commit is contained in:
@@ -0,0 +1 @@
|
||||
insert into PERSON (first_name, last_name) values ('Phillip', 'Webb');
|
||||
@@ -32,7 +32,7 @@ class SampleFlywayApplicationTests {
|
||||
|
||||
@Test
|
||||
void testDefaultSettings() {
|
||||
assertThat(this.template.queryForObject("SELECT COUNT(*) from PERSON", Integer.class)).isEqualTo(1);
|
||||
assertThat(this.template.queryForObject("SELECT COUNT(*) from PERSON", Integer.class)).isEqualTo(2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user