Fix hwdoc migration 12 breaking in sqlite

This fixes an unfortunate issue with sqlite migrations failing for
hwdoc. Due to different behaviour of South in previous than 0.7.4
versions it was not noticed until. There has been some effort to be
addressed here http://south.aeracode.org/ticket/1172 unsuccessfully.