public function addMigration(string $module, string $path)
    {
        $module = self::normalizeModule($module);
        if (isset($this->modules[$module]))
            throw new MigrationException("Duplicate module: " . $module);

        $instance = new Module($module, $path, $this->db);
        $this->modules[$module] = $instance;
        return $instance;
    }
public function addMigration(string $module, string $path)
    {
        $module = self::normalizeModule($module);
        if (isset($this->modules[$module]))
            throw new MigrationException("Duplicate module: " . $module);

        $instance = new Module($module, $path, $this->db);
        $this->modules[$module] = $instance;
        return $instance;
    }
public function addMigration ( string $ module , string $ path ) { $ module = self :: normalizeModule ( $ module ) ; if ( isset ( $ this -> modules [ $ module ] ) ) throw new MigrationException ( "Duplicate module: " . $ module ) ; $ instance = new Module ( $ module , $ path , $ this -> db ) ; $ this -> modules [ $ module ] = $ instance ; return $ instance ; }
Add a new migration using a module name and a path

The module object will be instantiated and registered.

@return Module The module instance
Add a new migration using a module name and a path