Skip to content

Commit 47f74f0

Browse files
authored
Fixed DB download variables inconsistencies. (#2360)
1 parent b42e927 commit 47f74f0

36 files changed

Lines changed: 692 additions & 477 deletions

File tree

.ahoy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ commands:
145145
aliases: [fetch-db2]
146146
cmd: |
147147
case " $* " in *" --fresh "*) export VORTEX_DOWNLOAD_DB_FORCE=1;; esac
148-
VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
148+
VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
149149
#;> MIGRATION
150150
#;> !PROVISION_TYPE_PROFILE
151151

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ jobs:
258258
#;< MIGRATION
259259
- run:
260260
name: Download migration DB
261-
command: VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
261+
command: VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
262262
no_output_timeout: 30m
263263
#;> MIGRATION
264264

.circleci/vortex-test-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
#;< MIGRATION
144144
- run:
145145
name: Download migration DB
146-
command: VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
146+
command: VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
147147
no_output_timeout: 30m
148148
#;> MIGRATION
149149

.github/workflows/build-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265

266266
#;< MIGRATION
267267
- name: Download migration DB
268-
run: VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
268+
run: VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
269269
#;> MIGRATION
270270

271271
- name: Export DB

.lagoon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tasks:
6767
command: |
6868
export VORTEX_DOWNLOAD_DB_SSH_FILE=false
6969
export VORTEX_DB_DIR=/tmp/data
70-
VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
70+
VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
7171
service: cli
7272
#;> MIGRATION
7373

.vortex/docs/.utils/update-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ echo "" >>"${OUTPUT_FILE}"
2222
echo "The list below is automatically generated with [Shellvar](https://github.com/alexSkrypnyk/shellvar) from all Shell scripts. " >>"${OUTPUT_FILE}"
2323
echo >>"${OUTPUT_FILE}"
2424

25-
docker run -v "${ROOT_DIR}:/app" drevops/shellvar:1.5.1 extract \
25+
docker run -v "${ROOT_DIR}:/app" drevops/shellvar:1.7.0 extract \
2626
--skip-text="@docs:skip" \
2727
--skip-description-prefix=";<" \
2828
--skip-description-prefix=";>" \

.vortex/docs/content/development/variables.mdx

Lines changed: 347 additions & 348 deletions
Large diffs are not rendered by default.

.vortex/docs/content/drupal/migrations.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ which resolves to this connection.
9292
| `ahoy db2` | Open the migration database in Sequel Ace |
9393

9494
The `download-db2` command reuses the existing `download-db.sh` script with
95-
`VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2`, which remaps all `VORTEX_DOWNLOAD_DB2_*`
96-
variables to `VORTEX_DOWNLOAD_DB_*` so all existing download sources (URL, FTP,
97-
Acquia, Lagoon, S3) work for the migration database as well.
95+
`VORTEX_DB_INDEX=2`, which makes all scripts resolve indexed variable names
96+
(e.g., `VORTEX_DOWNLOAD_DB2_SOURCE` instead of `VORTEX_DOWNLOAD_DB_SOURCE`,
97+
`VORTEX_DB2_IMAGE` instead of `VORTEX_DB_IMAGE`) so all existing download
98+
sources (URL, FTP, Acquia, Lagoon, S3) work for the migration database as well.
9899

99100
## Provision script
100101

.vortex/installer/tests/Fixtures/handler_process/migration_download_source_acquia/.ahoy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
+ aliases: [fetch-db2]
3232
+ cmd: |
3333
+ case " $* " in *" --fresh "*) export VORTEX_DOWNLOAD_DB_FORCE=1;; esac
34-
+ VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
34+
+ VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
3535

3636
reload-db:
3737
usage: Reload the database container using local database image.

.vortex/installer/tests/Fixtures/handler_process/migration_download_source_acquia/.github/workflows/build-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
timeout-minutes: 30
44

55
+ - name: Download migration DB
6-
+ run: VORTEX_VAR_PREFIX=VORTEX_DOWNLOAD_DB2 ./scripts/vortex/download-db.sh
6+
+ run: VORTEX_DB_INDEX=2 ./scripts/vortex/download-db.sh
77
+
88
- name: Export DB
99
run: |

0 commit comments

Comments
 (0)