- removes old log
- logs that rollback started
- gets list of all releases in
releasesfolder - get last deployed release timestamp
- chooses second last deployed release and store path to this release directory as target directory to RollbackEvent instance
- stores current deployed release directory path as current directory to event instance
- nothing
- nothing
- nothing
- nothing
- nothing
- nothing
- nothing
- nothing
- nothing
- for each config from
config_files: - reads target migration id from
PHINX_CURRENTin target directory - runs phinx rollback to target migration and stores output to
PHINX_ROLLBACKfile - runs phinx status and store output to
PHINX_AFTER_ROLLBACK_STATUS
- nothing
- nothing
- nothing
- nothing
- nothing
- nothing
- removes
currentsymlink and creates a new one linked to selected target release - copies log to
logs/timestamp.rollback.log