kezhenxu94 commented on a change in pull request #6743:
URL: https://github.com/apache/dolphinscheduler/pull/6743#discussion_r744759845
##########
File path:
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/datasource/SpringConnectionFactory.java
##########
@@ -152,7 +152,7 @@ private void initializeH2Datasource() {
.setType(EmbeddedDatabaseType.H2)
.setScriptEncoding(Constants.UTF_8)
.setName("dolphinscheduler;MODE=MySQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1")
-
.addScript(PropertyUtils.getString("spring.datasource.sql.schema",
"file:../sql/dolphinscheduler_h2.sql"))
+
.addScript(PropertyUtils.getString("spring.datasource.sql.schema",
"classpath:sql/dolphinscheduler_h2.sql"))
Review comment:
@ruanwenjun this file path is wrong in local tests and standalone server
and the tests are not run in h2 server, I've fixed them in this PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]