Fix : bad sql request during migration