Skip to content

Commit

Permalink
Merge pull request #1324 from spryker-shop/bugfix/sc-13227/master-mul…
Browse files Browse the repository at this point in the history
…ti-db-does-not-work-with-dynamic-store

Auto-merge based on green CI result.
  • Loading branch information
spryker-release-bot committed Jul 6, 2023
2 parents 0cdc28e + 88aaf32 commit 2069a05
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .git.docker
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b5a63eac724e02fc4529b1b98dbf67e9d8b7c8ae
437fdadf19b3172998743404f0c98eacfae4f213
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/Shared/config_default.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@

$paasServices = json_decode(getenv('SPRYKER_PAAS_SERVICES') ?: '[]', true);
if (!empty($paasServices['databases'])) {
$databasesConfig = $paasServices['databases'][APPLICATION_CODE_BUCKET] ?? $paasServices['databases']['_default'];
$databasesConfig = $paasServices['databases'][APPLICATION_STORE] ?? $paasServices['databases']['_default'];
$config[PropelConstants::ZED_DB_HOST] = $databasesConfig['host'];
$config[PropelConstants::ZED_DB_PORT] = $databasesConfig['port'];
$config[PropelConstants::ZED_DB_USERNAME] = $databasesConfig['username'];
Expand Down
2 changes: 1 addition & 1 deletion config/Shared/stores.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}, $activeStores);
}

return $isMultiDbEnabled ? [APPLICATION_CODE_BUCKET => $stores[APPLICATION_CODE_BUCKET]] : $stores;
return $isMultiDbEnabled ? [APPLICATION_STORE => $stores[APPLICATION_STORE]] : $stores;
}

$stores['DE'] = [
Expand Down
2 changes: 2 additions & 0 deletions data/import/common/AT/store.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name
AT
2 changes: 2 additions & 0 deletions data/import/common/DE/store.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name
DE
10 changes: 9 additions & 1 deletion data/import/local/full_AT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ version: 0
actions:
#1. Commerce Setup data import
- data_entity: store
# Cannot have a source because we use store.php
source: data/import/common/AT/store.csv
- data_entity: currency
source: data/import/common/common/currency.csv
- data_entity: currency-store
source: data/import/common/AT/currency_store.csv
- data_entity: country-store
source: data/import/common/AT/country_store.csv
- data_entity: locale-store
source: data/import/common/AT/locale_store.csv
- data_entity: default-locale-store
source: data/import/common/AT/default_locale_store.csv
- data_entity: order-source
source: data/import/common/common/order_source.csv
- data_entity: customer
Expand Down
10 changes: 9 additions & 1 deletion data/import/local/full_DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ version: 0
actions:
#1. Commerce Setup data import
- data_entity: store
# Cannot have a source because we use store.php
source: data/import/common/DE/store.csv
- data_entity: currency
source: data/import/common/common/currency.csv
- data_entity: currency-store
source: data/import/common/DE/currency_store.csv
- data_entity: country-store
source: data/import/common/DE/country_store.csv
- data_entity: locale-store
source: data/import/common/DE/locale_store.csv
- data_entity: default-locale-store
source: data/import/common/DE/default_locale_store.csv
- data_entity: order-source
source: data/import/common/common/order_source.csv
- data_entity: customer
Expand Down
10 changes: 9 additions & 1 deletion data/import/production/full_AT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ version: 0
actions:
#1. Commerce Setup data import
- data_entity: store
# Cannot have a source because we use store.php
source: data/import/common/AT/store.csv
- data_entity: currency
source: data/import/common/common/currency.csv
- data_entity: currency-store
source: data/import/common/AT/currency_store.csv
- data_entity: country-store
source: data/import/common/AT/country_store.csv
- data_entity: locale-store
source: data/import/common/AT/locale_store.csv
- data_entity: default-locale-store
source: data/import/common/AT/default_locale_store.csv
- data_entity: order-source
source: data/import/common/common/order_source.csv
- data_entity: customer
Expand Down
10 changes: 9 additions & 1 deletion data/import/production/full_DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ version: 0
actions:
#1. Commerce Setup data import
- data_entity: store
# Cannot have a source because we use store.php
source: data/import/common/DE/store.csv
- data_entity: currency
source: data/import/common/common/currency.csv
- data_entity: currency-store
source: data/import/common/DE/currency_store.csv
- data_entity: country-store
source: data/import/common/DE/country_store.csv
- data_entity: locale-store
source: data/import/common/DE/locale_store.csv
- data_entity: default-locale-store
source: data/import/common/DE/default_locale_store.csv
- data_entity: order-source
source: data/import/common/common/order_source.csv
- data_entity: customer
Expand Down

0 comments on commit 2069a05

Please sign in to comment.