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
Updating DoctrineMigrationsBundle for Doctrine Migrations 2.0 #228
Conversation
f84b4ea
to
74c6db7
Compare
c4498b6
to
e5079eb
Compare
8c2f5bc
to
41532ba
Compare
e224624
to
2f223bb
Compare
1f04ba5
to
a7f650d
Compare
93f2765
to
b6ac051
Compare
- 7.1 | ||
- 7.2 | ||
- nightly | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache |
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.
you should cache only $HOME/.composer/cache/files
, to avoid invalidating the Travis cache due to changes in the packagist metadata (cached in $HOME/.composer/cache/repo
). Packagist changes too often (every few minutes) to avoi this invalidation.
|
||
$configuration->setMigrationsColumnName($container->getParameter('doctrine_migrations.column_name')); | ||
$configuration->setMigrationsColumnLength($container->getParameter('doctrine_migrations.column_length')); | ||
$configuration->setMigrationsExecutedAtColumnName($container->getParameter('doctrine_migrations.executed_at_column_name')); |
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.
these ones should check for an explicit config file, as done for the table name
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.
I am not sure I understand what you mean. You mean how the others have an if (empty(...))
condition around them? These values in the Configuration class have a default value so it can't work the same way unless you have another thought/idea?
"symfony/framework-bundle": "~2.7|~3.3|~4.0", | ||
"php": "^7.1", | ||
"symfony/framework-bundle": "~3.4|~4.0", | ||
"doctrine/coding-standard": "^4.0", |
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.
should be a dev requirement
"doctrine/migrations": "^1.1" | ||
"doctrine/migrations": "^2.0@dev", | ||
"phpstan/phpstan": "^0.9.2", | ||
"phpstan/phpstan-strict-rules": "^0.9" |
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.
should be a dev requirement
"doctrine/doctrine-bundle": "~1.0", | ||
"doctrine/migrations": "^1.1" | ||
"doctrine/migrations": "^2.0@dev", | ||
"phpstan/phpstan": "^0.9.2", |
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.
should be a dev requirement
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.
These were fixed in #229
->scalarNode('column_name')->defaultValue('version')->end() | ||
->scalarNode('column_length')->defaultValue(255)->end() | ||
->scalarNode('executed_at_column_name')->defaultValue('executed_at')->end() | ||
->scalarNode('all_or_nothing')->defaultValue(false)->end() |
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.
these new settings should be added in the XSD for people using XML config files.
Closes #226