Add .sql extension to migration name when checking migrations

Currently the program compares the name of the filename of a
migration (which has a .sql extension) to the name of the
migration in the migrations table (which doesn't have a .sql
extension) thus it is never removed from the pendingMigrations set.

This causes an issue where all of the migrations are run every time
the plugin starts up.
parent 4ba17e97
Pipeline #1 passed with stages
in 43 seconds