cakephp / phinx

PHP Database Migrations for Everyone
https://phinx.org
MIT License
4.45k stars 895 forks source link

Troubleshooting migration that isn't added to phinxlog #2294

Closed malle-pietje closed 1 month ago

malle-pietje commented 1 month ago

I have a project where a new migration I created is executed without errors but isn't added to phinxlog:

 == 20240702110150 AddUniqueCheckoutIdentifierToAuths: migrating 
 == 20240702110150 AddUniqueCheckoutIdentifierToAuths: migrated 0.0312s

 == 20240702124009 AddStringsForNewSelfServicePortal: migrating 
 == 20240702124009 AddStringsForNewSelfServicePortal: migrated 0.0281s

but when running phinx status this is shown:

     up  20240702110150  2024-07-04 18:36:17  2024-07-04 18:36:17  AddUniqueCheckoutIdentifierToAuths
   down  20240702124009                                            AddStringsForNewSelfServicePortal

The changes appear to have applied correctly though.

Any suggestions on how to troubleshoot this?

malle-pietje commented 1 month ago

Some feedback here; after upgrading from 0.13 to 0.14 the problem went away.

Still interested to know how you can best troubleshoot/debug phinx migrations.