diff --git a/guides/v2.1/cloud/env/variables-deploy.md b/guides/v2.1/cloud/env/variables-deploy.md index f31c2875803..7c0e3a6b411 100644 --- a/guides/v2.1/cloud/env/variables-deploy.md +++ b/guides/v2.1/cloud/env/variables-deploy.md @@ -103,6 +103,47 @@ stage: _merge: true ``` +Also, you can configure a table prefix. + +{: .bs-callout .bs-callout-warning} +If you do not use the merge option with the table prefix, you must provide default connection settings or the deploy fails validation. + +The following example uses the `ece_` table prefix with default connection settings instead of using the `_merge` option: + +```yaml +stage: + deploy: + DATABASE_CONFIGURATION: + connection: + default: + username: user + host: host + dbname: magento + password: password + table_prefix: 'ece_' +``` + +Sample output: + +```terminal +MariaDB [main]> SHOW TABLES; ++-------------------------------------+ +| Tables_in_main | ++-------------------------------------+ +| ece_admin_passwords | +| ece_admin_system_messages | +| ece_admin_user | +| ece_admin_user_session | +| ece_adminnotification_inbox | +| ece_amazon_customer | +| ece_authorization_rule | +| ece_cache | +| ece_cache_tag | +| ece_captcha_log | +..... +``` +{: .no-copy} + ### `ENABLE_GOOGLE_ANALYTICS` - **Default**—`false` diff --git a/guides/v2.1/cloud/release-notes/cloud-tools.md b/guides/v2.1/cloud/release-notes/cloud-tools.md index 77d91585161..df6efceb0ad 100644 --- a/guides/v2.1/cloud/release-notes/cloud-tools.md +++ b/guides/v2.1/cloud/release-notes/cloud-tools.md @@ -34,7 +34,9 @@ The release notes include: - {:.new}**Environment variable updates**— - - {:.new}Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content. + - {:.new}Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content. + + - {:.new}Added support for database table prefixes using the [DATABASE_CONFIGURATION environment variable]({{page.baseurl}}/cloud/env/variables-deploy.html#database_configuration). ## v2002.0.18 diff --git a/guides/v2.2/cloud/env/variables-deploy.md b/guides/v2.2/cloud/env/variables-deploy.md index 8c9f7f25d2c..ca71fc37a6f 100644 --- a/guides/v2.2/cloud/env/variables-deploy.md +++ b/guides/v2.2/cloud/env/variables-deploy.md @@ -98,8 +98,9 @@ By default, the deployment process overwrites all settings in the `env.php` file #### To see a list of message queue consumers: - ./bin/magento queue:consumers:list - +```bash +./bin/magento queue:consumers:list +``` ### `CRYPT_KEY` - **Default**—_Not set_ @@ -133,6 +134,48 @@ stage: _merge: true ``` +Also, you can configure a table prefix. + +{: .bs-callout .bs-callout-warning} +If you do not use the merge option with the table prefix, you must provide default connection settings or the deploy fails validation. + +The following example uses the `ece_` table prefix with default connection settings instead of using the `_merge` option: + +```yaml +stage: + deploy: + DATABASE_CONFIGURATION: + connection: + default: + username: user + host: host + dbname: magento + password: password + table_prefix: 'ece_' +``` + +Sample output: + +```terminal +MariaDB [main]> SHOW TABLES; ++-------------------------------------+ +| Tables_in_main | ++-------------------------------------+ +| ece_admin_passwords | +| ece_admin_system_messages | +| ece_admin_user | +| ece_admin_user_session | +| ece_adminnotification_inbox | +| ece_amazon_customer | +| ece_authorization_rule | +| ece_cache | +| ece_cache_tag | +| ece_captcha_log | +..... +``` +{: .no-copy} + + ### `ELASTICSUITE_CONFIGURATION` - **Default**—_Not set_ diff --git a/guides/v2.2/cloud/release-notes/cloud-tools.md b/guides/v2.2/cloud/release-notes/cloud-tools.md index ff418313e36..811163a9a3c 100644 --- a/guides/v2.2/cloud/release-notes/cloud-tools.md +++ b/guides/v2.2/cloud/release-notes/cloud-tools.md @@ -34,7 +34,9 @@ The release notes include: - {:.new}**Environment variable updates**— - - {:.new}Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content. + - {:.new}Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content. + + - {:.new}Added support for database table prefixes using the [DATABASE_CONFIGURATION environment variable]({{page.baseurl}}/cloud/env/variables-deploy.html#database_configuration). ## v2002.0.18 diff --git a/guides/v2.3/cloud/release-notes/cloud-tools.md b/guides/v2.3/cloud/release-notes/cloud-tools.md index 89122cadae1..63a95f529b2 100644 --- a/guides/v2.3/cloud/release-notes/cloud-tools.md +++ b/guides/v2.3/cloud/release-notes/cloud-tools.md @@ -34,8 +34,9 @@ The release notes include: - {:.new}**Environment variable updates**— - - {:.new}Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content. + - {:.new}Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content. + - {:.new}Added support for database table prefixes using the [DATABASE_CONFIGURATION environment variable]({{page.baseurl}}/cloud/env/variables-deploy.html#database_configuration). ## v2002.0.18