migration sql correction