Services\ModuleInstaller::manageTables PHP Method

manageTables() private method

Mange table(s) in DB (CREATE/ALTER)
private manageTables ( )
    private function manageTables()
    {
        if (isset($this->config['forms'])) {
            if (isset($this->config['info']['vendor'])) {
                $vendor = Str::lower($this->config['info']['vendor']);
            } else {
                $vendor = '';
            }
            foreach ($this->config['forms'] as $form) {
                if (!Schema::hasTable("mdl_{$vendor}_{$form['table']}")) {
                    $this->createTables($form);
                } else {
                    $this->alterTables($form);
                }
            }
        }
        $this->dbMigrate();
    }