migrations icon indicating copy to clipboard operation
migrations copied to clipboard

rollback

Open tgoeminne opened this issue 1 year ago • 3 comments

when you do rollback should the phinxlog entry in db not be deleted?

i do migrate -p plugin then rollback -p plugin, then want to do migrate again not work due to phinxlog entry in db?

tgoeminne avatar Jun 03 '24 06:06 tgoeminne

when you do rollback should the phinxlog entry in db not be deleted?

Yes, the records in phinxlog should be removed when a migration has been rolled back. There are tests covering this. Knowing more about which commands you're running would help with reproducing this issue.

markstory avatar Jun 05 '24 17:06 markstory

bin/cake migrations migrate -p name, and same with rollback -p name

tgoeminne avatar Jun 06 '24 01:06 tgoeminne

I've added a test case for the situation you've described so far in https://github.com/cakephp/migrations/commit/fab711c6660dcb446e863de9d6c442d01edaa53e what are we missing in order to reproduce this?

markstory avatar Jun 06 '24 04:06 markstory