DoctrineMigrationsBundle icon indicating copy to clipboard operation
DoctrineMigrationsBundle copied to clipboard

Command doctrine:migrations:diff always generates empty migration if there is no differences

Open idchlife opened this issue 9 years ago • 4 comments

idchlife avatar Sep 19 '16 17:09 idchlife

Is that an issue ?

mikeSimonson avatar Sep 20 '16 09:09 mikeSimonson

@mikeSimonson some time ago (several months ago, if I'm not mistaken different version) doctrine would say something like 'No schema differences detected. There is no diff.'

Actually I lost issue, that said about empty migrations. There was an issue about this and somebody said that it's bug with current doctrine version. I thought maybe it was resolved, apparently not.

idchlife avatar Sep 20 '16 09:09 idchlife

probably @idchlife refers to https://github.com/doctrine/migrations/blob/75fc71e22d59210b4d3398455881147e85300a47/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php#L103 and in 2.x (with https://github.com/doctrine/migrations/commit/cbe1b7f2ffc6441a151197497becb81b73b1a51d) started to generate it each time

goetas avatar Jun 27 '20 06:06 goetas