Fixes DB migrations on SQLite

Change-Id: I07960799adf07ad39582f90feba27a84979aea76
Closes-Bug: #1308089