-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fixed the structure of the reverse-engineered mapping #1123
Conversation
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-3278 We use Jira to track the state of pull requests and the versions they got |
@stof a lot of tests seem to fail due to undefined index |
Related: DDC-3277 |
|
||
$this->assertArrayHasKey('columnDefault', $metadata->fieldMappings); | ||
$this->assertEquals('test_default', $metadata->fieldMappings['columnDefault']['default']); | ||
$this->assertEquals('test_default', $metadata->fieldMappings['columnDefault']['options']['default']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof can you add another test for the fixed
option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I don't know exactly which platforms are supporting the fixed
option for columns to test it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof I added a documentation chapter in DBAL about type mappings some months ago. There you can see which platform supports it and which doesn't.
Looks like only Drizzle does not support distinction between fixed and variable string types.
Only because I add to do a separate commit to update them, as I did it through the web UI on github |
Fixed the structure of the reverse-engineered mapping
Test for |
when using the DatabaseDriver, the field mapping being generated does not match the field mapping expected by all other drivers or the SchemaTool. This means that these mapping settings get ignored.
See doctrine/migrations#184 for the initial report