﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27525	Revert to previous migration automatically after failure when using MySQL backend	Sandy Agafonoff	nobody	"Owing to the fact MySQL does not support transactional DDL, would it be possible to automatically migrate to the previous migration, rather than leave the database in an inconsistent state?

Obviously, not all statements in a migration can be reversed, and, reverting to the previous migration is currently the developers decision, however in a cloud based CI/CD, automatic deployment based environment, allowing this to be run without human intervention would be a plus.

Possibly a flag on the migrate command like --fail-revert, or possibly a field in the migration class would be best, so I can decide on a per-migration basis the behaviour I would intend.

I understand this is going to be a niche request, however, I would like to open a discussion to see if there is some merit here.

"	New feature	closed	Migrations	1.10	Normal	wontfix	migrations, mysql, revert		Unreviewed	0	0	0	0	0	0
