Ticket #58 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Attribute errors cause MySQL to partially apply a migration

Reported by: andrew@… Owned by: andrew
Priority: major Milestone: 0.4
Component: databaseapi Version: 0.3
Keywords: Cc:


Migration with

add_index(...)  <---- oops!

will obviously not work, but mysql won't rollback the added column.

Possible solutions:

  • For mySQL, do a dry run and warn if things might break
  • If there's an exception during migration, output the sql from reverse() to try and assist
  • Suggest the user changes to postgres ;)

Change History

comment:1 Changed 7 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [107], including subtle please-oh-god-not-mysql hint.

Note: See TracTickets for help on using tickets.