Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Retrieve table default options from the SchemaManager #32641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2019

Conversation

vincenttouzet
Copy link
Contributor

@vincenttouzet vincenttouzet commented Jul 20, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32321
License MIT

This PR modify the Connection of the Doctrine Transport. It is now possible to specify a SchemaConfig that will be used when generating tables.

If Doctrine is configured as the following :

# config/packages/doctrine.yaml
doctrine:
    dbal:
        default_table_options:
            charset: 'utf8mb4'
            collate: 'utf8mb4_unicode_ci'

Then those options are used to create the table.

ping @weaverryan 😉

@vincenttouzet vincenttouzet force-pushed the 32321_messenger_doctrine_schema branch from baeeadd to b1c2e56 Compare July 21, 2019 08:25
@nicolas-grekas nicolas-grekas added this to the 4.3 milestone Jul 21, 2019
@vincenttouzet vincenttouzet force-pushed the 32321_messenger_doctrine_schema branch from 58843f3 to 0dbfc31 Compare July 25, 2019 06:00
@vincenttouzet vincenttouzet force-pushed the 32321_messenger_doctrine_schema branch from 0dbfc31 to 301ceae Compare July 28, 2019 13:22
@Tobion Tobion force-pushed the 32321_messenger_doctrine_schema branch from 1660f8d to 93d0dc8 Compare July 28, 2019 14:12
@Tobion
Copy link
Contributor

Tobion commented Jul 28, 2019

Thank you @vincenttouzet.

@Tobion Tobion merged commit 93d0dc8 into symfony:4.3 Jul 28, 2019
Tobion added a commit that referenced this pull request Jul 28, 2019
…Manager (vincenttouzet)

This PR was squashed before being merged into the 4.3 branch (closes #32641).

Discussion
----------

[Messenger] Retrieve table default options from the SchemaManager

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #32321    <!-- #-prefixed issue number(s), if any -->
| License       | MIT

This PR modify the Connection of the Doctrine Transport. It is now possible to specify a `SchemaConfig` that will be used when generating tables.

If Doctrine is configured as the following :
```yml
# config/packages/doctrine.yaml
doctrine:
    dbal:
        default_table_options:
            charset: 'utf8mb4'
            collate: 'utf8mb4_unicode_ci'
```

Then those options are used to create the table.

ping @weaverryan 😉

Commits
-------

93d0dc8 [Messenger] Retrieve table default options from the SchemaManager
@fabpot fabpot mentioned this pull request Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants