public function install(?string $database, $id = null): void
    {
        if (! \is_null($id)) {
            $this->executeFor($id, function ($entity) use ($database) {
                $this->runInstall($entity, $database);
            });

            return;
        }

        $this->executeForEach(function ($entity) use ($database) {
            $this->runInstall($entity, $database);
        });
    }
public function install(?string $database, $id = null): void
    {
        if (! \is_null($id)) {
            $this->executeFor($id, function ($entity) use ($database) {
                $this->runInstall($entity, $database);
            });

            return;
        }

        $this->executeForEach(function ($entity) use ($database) {
            $this->runInstall($entity, $database);
        });
    }
public function install ( ? string $ database , $ id = null ) : void { if ( ! \ is_null ( $ id ) ) { $ this -> executeFor ( $ id , function ( $ entity ) use ( $ database ) { $ this -> runInstall ( $ entity , $ database ) ; } ) ; return ; } $ this -> executeForEach ( function ( $ entity ) use ( $ database ) { $ this -> runInstall ( $ entity , $ database ) ; } ) ; }
Install migrations.

@param  string|null  $database
@param  mixed|null  $id

@return void
Install migrations .