MySQL Forums
Forum List  »  InnoDB

Re: [MySQL 5.5.25] Can't upgrade from Antelope to Barracuda
Posted by: Peter Brawley
Date: August 16, 2016 10:43AM

str1,str2,...strN column names most always indicate serious design failure. Hundreds of them are a disaster, as you're finding.

rb_obj_data str..., date..., int..., dbl, txt... and intg... columns need to broken out (the relational word is "projected") into child tables objstrs, objdates etc, where they belong, turning the suffix integers used in those column names into id values, eg ...

create table objdates( 
  id smallint primary key, 
  obj_id bigint, 
  dt datetime, 
  foreign key(obj_id) references rb_obj_data(obj_id)

so for example the value of rb_obj_data.date12 for obj_id=N will go into a objdates row with id=13, obj_id=N, dt=rb_obj_data,date12.

Then, send the genius who designed this embarrassment back to school :-).

Edited 1 time(s). Last edit at 08/16/2016 12:05PM by Peter Brawley.

Options: ReplyQuote

Written By
Re: [MySQL 5.5.25] Can't upgrade from Antelope to Barracuda
August 16, 2016 10:43AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.