Fix #10789. Now at last ::Logger doesn't support #silence method .
only check pending migrations if there are new files