Fix : bad sql request during migration
Merge pull request #1400 from jfefe/fix_migr

Fix : bad sql request during migration