Fix #1562 MigrationError
Merge pull request #794 from nlegoff/fix1562

Fix #1562 Migration Error