소스 검색

增加postgresql数据源支持

Devli 1 년 전
부모
커밋
1127d312bc

BIN
report-core/lib/postgresql/postgresql-42.2.18.jar


BIN
report-core/lib/postgresql/postgresql-9.4.1212.jre7.jar


+ 5 - 0
report-core/src/main/assembly/assembly.xml

@@ -26,6 +26,11 @@
 			<outputDirectory>lib</outputDirectory>
 			<fileMode>0755</fileMode>
 		</fileSet>
+		<fileSet>
+			<directory>lib/postgresql</directory>
+			<outputDirectory>lib</outputDirectory>
+			<fileMode>0755</fileMode>
+		</fileSet>
 		<fileSet>
 			<directory>src/main/assembly/bin</directory>
 			<outputDirectory>bin</outputDirectory>

+ 3 - 0
report-core/src/main/resources/db/migration/V1.4.2__update.sql

@@ -0,0 +1,3 @@
+Replace INTO gaea_dict_item
+(dict_code, item_name, item_value, item_extend, enabled, locale, remark, sort, create_by, create_time, update_by, update_time, version)
+VALUES('SOURCE_TYPE', 'postgresql', 'postgresql', '[{"label":"driverName","value":"org.postgresql.Driver","labelValue":"驱动类"},{"label":"jdbcUrl","value":"jdbc:postgresql://127.0.0.1:5432/pgdb","labelValue":"连接串"},{"label":"username","value":"root","labelValue":"用户名"},{"label":"password","value":"root","labelValue":"密码"}]', 1, 'zh', NULL, 2, 'admin', '2021-03-23 10:54:08', 'admin', '2021-03-23 10:54:08', 1);