Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Make migrations use transaction and rollback if something was wrong

#834

When a migration is running and an error is raised, everything before the error is applied to the database schema and everything before (obviously) doesn't. Also, the migration version is stored as executed, which creates schema inconsistency and migration version control brokeness.

This would not work for migrations involving schema changes on databases that do not support DDL rollback (i.e. MySQL, Oracle).

This ticket was in Trac ticket 5470 but was not resovled. There are working patches on that ticket.

Reported by Ian Bailey · August 14th, 2008 @ 07:58 PM

State: resolved
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none