Browse Source

[Fix-7195] The file path of 2.0.1-schema used a wrong separator. (#7200)

3.0.0/version-upgrade
Hua Jiang 3 years ago committed by GitHub
parent
commit
705ba74f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.1_schema/mysql/dolphinscheduler_ddl.sql
  2. 0
      dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.1_schema/postgresql/dolphinscheduler_ddl.sql
  3. 16
      dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/upgrade/SchemaUtilsTest.java

0
dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.1-schema/mysql/dolphinscheduler_ddl.sql → dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.1_schema/mysql/dolphinscheduler_ddl.sql

0
dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.1-schema/postgre/dolphinscheduler_ddl.sql → dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.1_schema/postgresql/dolphinscheduler_ddl.sql

16
dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/upgrade/SchemaUtilsTest.java

@ -17,6 +17,11 @@
package org.apache.dolphinscheduler.dao.upgrade;
import org.apache.commons.collections.CollectionUtils;
import java.io.IOException;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
@ -57,4 +62,15 @@ public class SchemaUtilsTest {
// This is expected
}
}
@Test
public void testGetAllSchemaList() {
List<String> list = null;
try {
list = SchemaUtils.getAllSchemaList();
} catch (IOException ex) {
Assert.fail(ex.getMessage());
}
Assert.assertFalse("Can not find any schema files", CollectionUtils.isEmpty(list));
}
}

Loading…
Cancel
Save