Fix #1544 : Upgrade data command fails
Merge pull request #721 from romainneutron/fix-1544

[3.8] Fix #1544 : Upgrade data command fails