Skip to content

Commit

Permalink
[Multi-Database Support] Introduce h2 postgre profile properties to l…
Browse files Browse the repository at this point in the history
…et user config database config
  • Loading branch information
hezhangjian committed Mar 4, 2023
1 parent 9bed634 commit 9df198f
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ Apollo 2.2.0
* [Bump springboot version from 2.7.8 to 2.7.9](https://github.com/apolloconfig/apollo/pull/4750)
* [[Multi-Database Support] Without Reliance on globally_quoted_identifiers Variable](https://github.com/apolloconfig/apollo/pull/4749)
* [[Multi-Database Support] Without Reliance on boolean integer compare](https://github.com/apolloconfig/apollo/pull/4757)
* [[Multi-Database Support] package postgre h2 dependency](https://github.com/apolloconfig/apollo/pull/4757)
* [[Multi-Database Support] package postgre h2 dependency](https://github.com/apolloconfig/apollo/pull/4763)
* [[Multi-Database Support] Optimize table case](https://github.com/apolloconfig/apollo/pull/4768)
* [Fix OIDC logout unnecessary redirect](https://github.com/apolloconfig/apollo/pull/4773)
* [[Multi-Database Support] Introduce h2 postgre profile properties to let user config database config](https://github.com/apolloconfig/apollo/pull/4766)

------------------
All issues and pull requests are [here](https://github.com/apolloconfig/apollo/milestone/13?closed=1)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
# DataSource
spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
spring.datasource.url = ${spring_datasource_url}
spring.datasource.username = ${spring_datasource_username}
spring.datasource.password = ${spring_datasource_password}
3 changes: 3 additions & 0 deletions apollo-adminservice/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
#spring.profiles.active=github,zookeeper-discovery
#spring.profiles.active=github,custom-defined-discovery
#spring.profiles.active=github,database-discovery

# You may change the following config to activate different database profiles like h2/postgres
spring.profiles.group.github = mysql
24 changes: 24 additions & 0 deletions apollo-assembly/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright 2023 Apollo Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# You may uncomment the following config to activate different spring profiles
#spring.profiles.active=github,consul-discovery
#spring.profiles.active=github,zookeeper-discovery
#spring.profiles.active=github,custom-defined-discovery
#spring.profiles.active=github,database-discovery

# You may change the following config to activate different database profiles like h2/postgres
spring.profiles.group.github = mysql
15 changes: 15 additions & 0 deletions apollo-common/src/main/resources/application-h2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright 2023 Apollo Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
16 changes: 16 additions & 0 deletions apollo-common/src/main/resources/application-mysql.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Copyright 2023 Apollo Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
15 changes: 15 additions & 0 deletions apollo-common/src/main/resources/application-postgre.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright 2023 Apollo Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
# DataSource
spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
spring.datasource.url = ${spring_datasource_url}
spring.datasource.username = ${spring_datasource_username}
spring.datasource.password = ${spring_datasource_password}
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
#spring.profiles.active=github,zookeeper-discovery
#spring.profiles.active=github,custom-defined-discovery
#spring.profiles.active=github,database-discovery

# You may change the following config to activate different database profiles like h2/postgres
spring.profiles.group.github = mysql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
# DataSource
spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4
spring.datasource.url = ${spring_datasource_url}
spring.datasource.username = ${spring_datasource_username}
spring.datasource.password = ${spring_datasource_password}
24 changes: 24 additions & 0 deletions apollo-portal/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright 2023 Apollo Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# You may uncomment the following config to activate different spring profiles
#spring.profiles.active=github,consul-discovery
#spring.profiles.active=github,zookeeper-discovery
#spring.profiles.active=github,custom-defined-discovery
#spring.profiles.active=github,database-discovery

# You may change the following config to activate different database profiles like h2/postgres
spring.profiles.group.github = mysql

0 comments on commit 9df198f

Please sign in to comment.