DbPatch_Command_Abstract::validateChangelog PHP Method

validateChangelog() protected method

Validate if the changelog is present in the database if not try to create the table
protected validateChangelog ( ) : boolean
return boolean
    protected function validateChangelog()
    {
        if ($this->changelogExists()) {
            $this->updateColumnType();
            return true;
        }
        $this->getWriter()->line("no changelog database found, try to create one");
        if (!$this->createChangelog()) {
            $this->getWriter()->line("couldn't create a changelog table");
            return false;
        }
        return true;
    }