Modify

Ticket #58 (closed defect: fixed)

Opened 6 years ago

Last modified 6 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:

Description

Migration with

add_column(...)
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 ;)

Attachments

Change History

comment:1 Changed 6 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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.