Skip to content
Permalink
Browse files

EZP-29938: Enabled PostgreSQL support via DoctrineSchemaBuilder (#365)

* [Bundles] Installed and enabled eZ Systems DoctrineSchemaBundle

* [Config] Parametrized database charset to support multiple DBMS-es

* [Config] Configured database charset and collation for SchemaBuilder

Setting also has BC fallback in default_parameters.yml
  • Loading branch information...
alongosz committed Mar 11, 2019
1 parent 466fce6 commit 419c6b44770081a4b837c5d217f19ff49a6b2d29
Showing with 18 additions and 1 deletion.
  1. +1 −0 app/AppKernel.php
  2. +8 −1 app/config/config.yml
  3. +6 −0 app/config/default_parameters.yml
  4. +2 −0 app/config/parameters.yml.dist
  5. +1 −0 composer.json
@@ -37,6 +37,7 @@ public function registerBundles()
new eZ\Bundle\EzPublishRestBundle\EzPublishRestBundle(),
new EzSystems\EzSupportToolsBundle\EzSystemsEzSupportToolsBundle(),
new EzSystems\PlatformInstallerBundle\EzSystemsPlatformInstallerBundle(),
new EzSystems\DoctrineSchemaBundle\DoctrineSchemaBundle(),
new EzSystems\RepositoryFormsBundle\EzSystemsRepositoryFormsBundle(),
new EzSystems\EzPlatformSolrSearchEngineBundle\EzSystemsEzPlatformSolrSearchEngineBundle(),
new EzSystems\EzPlatformDesignEngineBundle\EzPlatformDesignEngineBundle(),
@@ -23,12 +23,19 @@ doctrine:
dbname: '%database_name%'
user: '%database_user%'
password: '%database_password%'
charset: utf8mb4
charset: '%database_charset%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true

# If you are not using MySQL, you can comment-out this section
ez_doctrine_schema:
tables:
options:
charset: '%database_charset%'
collate: '%database_collation%'

# Base configuration for Solr, for more options see: https://doc.ezplatform.com/en/latest/guide/search/#solr-bundle
# Can have several connections used by each eZ Repositories in ezplatform.yml
ez_search_engine_solr:
@@ -13,6 +13,9 @@ parameters:
database_name: '%env(DATABASE_NAME)%'
database_user: '%env(DATABASE_USER)%'
database_password: '%env(DATABASE_PASSWORD)%'
database_charset: '%env(DATABASE_CHARSET)%'
# collation currently has effect on MySQL only
database_collation: '%env(DATABASE_COLLATION)%'

# Setting for mail system, used by SwiftMailer
mailer_host: '%env(MAILER_HOST)%'
@@ -84,6 +87,9 @@ parameters:
env(RECOMMENDATIONS_LICENSE_KEY): ~
env(PUBLIC_SERVER_URI): ~

# set here for BC reasons, change them in parameters.yml
env(DATABASE_CHARSET): utf8mb4
env(DATABASE_COLLATION): utf8mb4_unicode_520_ci

# Compile time handlers
## These are defined at compile time, and hence can't be set at runtime using env()
@@ -15,3 +15,5 @@ parameters:
env(DATABASE_NAME): ezplatform
env(DATABASE_USER): root
env(DATABASE_PASSWORD):
env(DATABASE_CHARSET): utf8mb4
env(DATABASE_COLLATION): utf8mb4_unicode_520_ci
@@ -42,6 +42,7 @@
"ezsystems/ezplatform-standard-design": "^0.2@dev",
"ezsystems/ezpublish-kernel": "^7.5@dev",
"ezsystems/repository-forms": "^2.5@dev",
"ezsystems/doctrine-dbal-schema": "^0.1@dev",
"ezsystems/ezplatform-user": "^1.0@dev",
"friendsofsymfony/jsrouting-bundle": "^1.6.3",
"incenteev/composer-parameter-handler": "^2.1.3",

0 comments on commit 419c6b4

Please sign in to comment.
You can’t perform that action at this time.