migrations icon indicating copy to clipboard operation
migrations copied to clipboard

simple plan impl

Open Mikulas opened this issue 8 years ago • 1 comments

Closes #61

Intentionally very simple implementation. More complex would require many changes to the core, such as splitting OrderResolver. This was started at https://github.com/Mikulas/migrations/tree/pr/exec-plan.

This proposed solution is almost backwards compatible, with single exception of extending existing IConfiguration with getPlanFile method. However, the method is allowed to return NULL, in which case migrations completely skip all Plan code.

Plan entries are created only with migrations:create symfony command. The Plan is checked for validity whenever Engine\Runner::run is invoked.

IMO this solves the merge/rebase problem this was initially intended for, with minimal changes to the codebase.

screenshot 2017-04-22 14 10 29

Mikulas avatar Apr 22 '17 12:04 Mikulas

Ok so this above is my proposition. Any better implementation would require a pretty much complete rewrite of the core.

Mikulas avatar Jul 27 '17 17:07 Mikulas