Fix migrations for SQLite

This is pull request for #95 issue