Browse Source

refactor: optimize dialect properties

tjq 3 years ago
parent
commit
4e9c1f98b7

+ 3 - 0
powerjob-server/powerjob-server-persistence/src/main/java/tech/powerjob/server/persistence/config/dialect/PowerJobPGDialect.java

@@ -7,6 +7,9 @@ import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
 import java.sql.Types;
 
 /**
+ * PostgreSQL 数据库支持,需要在 application.properties 中添加以下配置项进行激活
+ * spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
+ *
  * @author Kung Yao
  * @author Echo009
  * 2021/3/24 下午 04:23

+ 0 - 4
powerjob-server/powerjob-server-starter/src/main/resources/application-daily.properties

@@ -9,10 +9,6 @@ spring.datasource.core.password=No1Bug2Please3!
 spring.datasource.core.hikari.maximum-pool-size=20
 spring.datasource.core.hikari.minimum-idle=5
 
-####### Fix issue 153 for PostgreSQL users, see https://github.com/PowerJob/PowerJob/issues/153#issuecomment-812771783 for more information #######
-####### Notice, the configuration below only supports PostgreSQL 10.x and later #######
-# spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
-
 ####### MongoDB properties(Non-core configuration properties)  #######
 ####### configure oms.mongodb.enable=false to disable mongodb #######
 oms.mongodb.enable=true

+ 0 - 4
powerjob-server/powerjob-server-starter/src/main/resources/application-pre.properties

@@ -9,10 +9,6 @@ spring.datasource.core.password=No1Bug2Please3!
 spring.datasource.core.hikari.maximum-pool-size=20
 spring.datasource.core.hikari.minimum-idle=5
 
-####### Fix issue 153 for PostgreSQL users, see https://github.com/PowerJob/PowerJob/issues/153#issuecomment-812771783 for more information #######
-####### Notice, the configuration below only supports PostgreSQL 10.x and later #######
-# spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
-
 ####### MongoDB properties(Non-core configuration properties)  #######
 ####### configure oms.mongodb.enable=false to disable mongodb #######
 oms.mongodb.enable=true

+ 0 - 4
powerjob-server/powerjob-server-starter/src/main/resources/application-product.properties

@@ -9,10 +9,6 @@ spring.datasource.core.password=No1Bug2Please3!
 spring.datasource.core.hikari.maximum-pool-size=20
 spring.datasource.core.hikari.minimum-idle=5
 
-####### Fix issue 153 for PostgreSQL users, see https://github.com/PowerJob/PowerJob/issues/153#issuecomment-812771783 for more information #######
-####### Notice, the configuration below only supports PostgreSQL 10.x and later #######
-# spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
-
 ####### MongoDB properties(Non-core configuration properties)  #######
 ####### configure oms.mongodb.enable=false to disable mongodb #######
 oms.mongodb.enable=true