code: public function createMigrateRepository(array $args)
      {
          $db = $this->app->db;
          $repo = new Repository($db);
  
          // Add all module paths to the Migration object
          $resolver = $this->app->resolver->getResolver("migrations");
          $mods = [];
  
          foreach ($resolver->getSearchPath() as $name => $path)
          {
              $module = new Module($name, $path, $db);
              if ($name === "wedeto.db")
                  array_unshift($mods, $module);
              else
                  array_push($mods, $module);
          }
  
          foreach ($mods as $module)
              $repo->addModule($module);
  
          return $repo;
      }
docs: Factory method to create the DB\Migrate\Repository instance. Registered with Wedeto\DI to
  make sure that new instances are created here.