Skip to content

Commit 30d1985

Browse files
committed
remove flyway migration documentation
1 parent 3097974 commit 30d1985

File tree

2 files changed

+4
-42
lines changed

2 files changed

+4
-42
lines changed

docs/en/deployment/distributed-deployment-guide.md

+2-22
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ Note that ApolloPortalDB only needs to deploy one in the production environment,
215215
216216
### 2.1.1 Creating ApolloPortalDB
217217

218-
You can choose to create it by manually importing SQL or by automatically importing SQL via [Flyway](https://flywaydb.org/) depending on the actual situation.
219-
220218
#### 2.1.1.1 Manual SQL Import
221219

222220
You can import [apolloportaldb.sql](https://github.com/apolloconfig/apollo/blob/master/scripts/sql/profiles/mysql-default/apolloportaldb.sql) through various MySQL clients.
@@ -227,14 +225,7 @@ Using the native MySQL client as an example.
227225
source /your_local_path/scripts/sql/profiles/mysql-default/apolloportaldb.sql
228226
```
229227

230-
#### 2.1.1.2 Created via Flyway import SQL
231-
232-
> Requires version 1.3.0 and above
233-
234-
1. Modify the `flyway-portaldb.properties` in [flyway-portaldb.properties](https://github.com/apolloconfig/apollo/blob/master/scripts/flyway/flyway-portaldb.properties) in `flyway.user`, `flyway.password` and `flyway.url` configurations
235-
2. Execute `mvn -N -Pportaldb flyway:migrate` in the apollo project root directory
236-
237-
#### 2.1.1.3 Verification
228+
#### 2.1.1.2 Verification
238229

239230
After a successful import, you can verify it by executing the following sql statement.
240231

@@ -250,8 +241,6 @@ select `Id`, `Key`, `Value`, `Comment` from `ApolloPortalDB`. `ServerConfig` lim
250241
251242
### 2.1.2 Creating ApolloConfigDB
252243

253-
You can choose to create it by manually importing SQL or automatically importing SQL via [Flyway](https://flywaydb.org/) according to the actual situation.
254-
255244
#### 2.1.2.1 Importing SQL Manually
256245

257246
You can import [apolloconfigdb.sql](https://github.com/apolloconfig/apollo/blob/master/scripts/sql/profiles/mysql-default/apolloconfigdb.sql) through various MySQL clients.
@@ -262,16 +251,7 @@ Using the native MySQL client as an example.
262251
source /your_local_path/scripts/sql/profiles/mysql-default/apolloconfigdb.sql
263252
```
264253

265-
#### 2.1.2.2 SQL import via Flyway
266-
267-
> Version 1.3.0 and above is required
268-
269-
1. Modify the `flyway.user`, `flyway.password`, and `flyway.password` in [flyway-configdb.properties](https://github.com/apolloconfig/apollo/blob/master/scripts/flyway/flyway-configdb.properties) .
270-
2. Run `mvn -N -Pconfigdb flyway:migrate` in the apollo project root directory
271-
272-
#### 2.1.2.3 Verification
273-
274-
254+
#### 2.1.2.2 Verification
275255

276256
After a successful import, you can verify it by executing the following sql statement.
277257

docs/zh/deployment/distributed-deployment-guide.md

+2-20
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ Apollo服务端共需要两个数据库:`ApolloPortalDB`和`ApolloConfigDB`,
213213
214214
### 2.1.1 创建ApolloPortalDB
215215

216-
可以根据实际情况选择通过手动导入SQL或是通过[Flyway](https://flywaydb.org/)自动导入SQL创建。
217-
218216
#### 2.1.1.1 手动导入SQL创建
219217

220218
通过各种MySQL客户端导入[apolloportaldb.sql](https://github.com/apolloconfig/apollo/blob/master/scripts/sql/profiles/mysql-default/apolloportaldb.sql)即可。
@@ -224,14 +222,7 @@ Apollo服务端共需要两个数据库:`ApolloPortalDB`和`ApolloConfigDB`,
224222
source /your_local_path/scripts/sql/profiles/mysql-default/apolloportaldb.sql
225223
```
226224

227-
#### 2.1.1.2 通过Flyway导入SQL创建
228-
229-
> 需要1.3.0及以上版本
230-
231-
1. 根据实际情况修改[flyway-portaldb.properties](https://github.com/apolloconfig/apollo/blob/master/scripts/flyway/flyway-portaldb.properties)中的`flyway.user``flyway.password``flyway.url`配置
232-
2. 在apollo项目根目录下执行`mvn -N -Pportaldb flyway:migrate`
233-
234-
#### 2.1.1.3 验证
225+
#### 2.1.1.2 验证
235226

236227
导入成功后,可以通过执行以下sql语句来验证:
237228
```sql
@@ -246,8 +237,6 @@ select `Id`, `Key`, `Value`, `Comment` from `ApolloPortalDB`.`ServerConfig` limi
246237
247238
### 2.1.2 创建ApolloConfigDB
248239

249-
可以根据实际情况选择通过手动导入SQL或是通过[Flyway](https://flywaydb.org/)自动导入SQL创建。
250-
251240
#### 2.1.2.1 手动导入SQL
252241

253242
通过各种MySQL客户端导入[apolloconfigdb.sql](https://github.com/apolloconfig/apollo/blob/master/scripts/sql/profiles/mysql-default/apolloconfigdb.sql)即可。
@@ -257,14 +246,7 @@ select `Id`, `Key`, `Value`, `Comment` from `ApolloPortalDB`.`ServerConfig` limi
257246
source /your_local_path/scripts/sql/profiles/mysql-default/apolloconfigdb.sql
258247
```
259248

260-
#### 2.1.2.2 通过Flyway导入SQL
261-
262-
> 需要1.3.0及以上版本
263-
264-
1. 根据实际情况修改[flyway-configdb.properties](https://github.com/apolloconfig/apollo/blob/master/scripts/flyway/flyway-configdb.properties)中的`flyway.user``flyway.password``flyway.url`配置
265-
2. 在apollo项目根目录下执行`mvn -N -Pconfigdb flyway:migrate`
266-
267-
#### 2.1.2.3 验证
249+
#### 2.1.2.2 验证
268250

269251
导入成功后,可以通过执行以下sql语句来验证:
270252
```sql

0 commit comments

Comments
 (0)