Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger Doctrine] Fixed regression by #50524 causing data loss#50717
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedJun 20, 2023
Hey! Thanks for your PR. You are targeting branch "5.4" but it seems your PR description refers to branch "6.3". Cheers! Carsonbot |
brusch commentedJun 20, 2023
Ok, according todoctrine/dbal#5766 there's no replacement for |
nicolas-grekas commentedJun 22, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Replaced by#50742, thanks for raising this. |
…rekas)This PR was merged into the 5.4 branch.Discussion----------[Messenger] Preserve existing Doctrine schema| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no (fixing a not released bug)| New feature? | no| Deprecations? | no| Tickets |Fix#50717| License | MIT| Doc PR | -[Inlining](https://github.com/symfony/symfony/pull/50742/files#diff-2a38c9deb498eec50126c297bb3d094c8efb29364934e902d6481761ace6f20a) since Doctrine deprecated "toSaveSql" without providing an alternative.Cleaning up a few unneeded calls to `ORMSetup::createConfiguration()` also.Commits-------96c227a [Messenger] Preserve existing Doctrine schema
Uh oh!
There was an error while loading.Please reload this page.
Regression caused by#50524
When using
$platform->getAlterSchemaSQL($schemaDiff)instead of$schemaDiff->toSaveSql($platform)causes to call\Doctrine\DBAL\Schema\SchemaDiff::_toSql($platform, false)instead of\Doctrine\DBAL\Schema\SchemaDiff::_toSql($platform, true). When $saveMode=false the diff from the schema is getting remove, so actually all other tables ... in the DB are getting deletedFollow up to#50716 which was closed automatically by mistake 😊