mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-12-01 15:37:14 +00:00
FIX: extra-ddl can contribute to "drop-all" script, otherwise the drop all script is not appyable to h2:file (#1301)
This commit is contained in:
1 parent
c1b022c123
commit
0c368ed7b3
6 files changed
+36
-7
No files matched your search
@@ -17,7 +17,7 @@ public class ExtraDdlXmlReaderTest {
|
||||
@Test
|
||||
public void buildExtra_when_h2() {
|
||||
|
||||
String ddl = ExtraDdlXmlReader.buildExtra("h2");
|
||||
String ddl = ExtraDdlXmlReader.buildExtra("h2", false);
|
||||
|
||||
assertThat(ddl).contains("create or replace view order_agg_vw");
|
||||
assertThat(ddl).contains("-- h2 and postgres script");
|
||||
@@ -27,7 +27,7 @@ public class ExtraDdlXmlReaderTest {
|
||||
@Test
|
||||
public void buildExtra_when_oracle() {
|
||||
|
||||
String ddl = ExtraDdlXmlReader.buildExtra("oracle");
|
||||
String ddl = ExtraDdlXmlReader.buildExtra("oracle", false);
|
||||
|
||||
assertThat(ddl).contains("create or replace view order_agg_vw");
|
||||
assertThat(ddl).doesNotContain("-- h2 and postgres script");
|
||||
@@ -37,7 +37,7 @@ public class ExtraDdlXmlReaderTest {
|
||||
@Test
|
||||
public void buildExtra_when_mysql() {
|
||||
|
||||
String ddl = ExtraDdlXmlReader.buildExtra("mysql");
|
||||
String ddl = ExtraDdlXmlReader.buildExtra("mysql", false);
|
||||
|
||||
assertThat(ddl).contains("create or replace view order_agg_vw");
|
||||
assertThat(ddl).doesNotContain("-- h2 and postgres script");
|
||||
|
||||
Reference in new issue
Block a user