[MIGRATION] changing code field to length of code