Detect non-SQL adapters when trying to run migrations
Fixes an issue where removing with a query object would cause an error