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:
Phillip Webb
2021-06-07 20:40:16 -07:00
parent dafd511284
commit 6ab2df5698
3 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1 @@
insert into PERSON (first_name, last_name) values ('Phillip', 'Webb');

View File

@@ -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);
}
}