public static function getLastMigration(App $app){
        $res = DB::connection('default')->table('migrations')->orderBy('id', 'desc')->first();
        if (is_null($res) || !$app->hasMigration($res->name)){
            return false;
        }
        return $res->name;
    }