INT-4262: Fix SQL scripts for IF EXISTS clause

JIRA: https://jira.spring.io/browse/INT-4262

Since MySQL doesn't have `IF EXISTS` for `DROP INDEX`.
And on the other hand the entire `DROP TABLE` takes care about indexes as well,
we don't need the `DROP INDEX` command for mysql.properties
* Add `NODROPINDEX` variable to the `mysql.properties`
* Tweak `destroy.sql.vpp` to leverage `NODROPINDEX`
This commit is contained in:
Artem Bilan
2017-04-24 12:04:53 -04:00
committed by Gary Russell
parent b869666021
commit cd4964eb7f
12 changed files with 29 additions and 12 deletions

View File

@@ -72,6 +72,7 @@ public class DelayerHandlerRescheduleIntegrationTests {
public static void init() {
dataSource = new EmbeddedDatabaseBuilder()
.setType(EmbeddedDatabaseType.H2)
.addScript("classpath:/org/springframework/integration/jdbc/schema-drop-h2.sql")
.addScript("classpath:/org/springframework/integration/jdbc/schema-h2.sql")
.build();
}