protected function createTableIfNeeded()
    {
        if ($this->tableExists) {
            return false;
        }

        if ($this->tableExist($this->tableName)) {
            $this->tableExists = true;
            return false;
        }

        $this->createTable();

        $this->tableExists = true;
        return true;
    }
protected function createTableIfNeeded()
    {
        if ($this->tableExists) {
            return false;
        }

        if ($this->tableExist($this->tableName)) {
            $this->tableExists = true;
            return false;
        }

        $this->createTable();

        $this->tableExists = true;
        return true;
    }
protected function createTableIfNeeded ( ) { if ( $ this -> tableExists ) { return false ; } if ( $ this -> tableExist ( $ this -> tableName ) ) { $ this -> tableExists = true ; return false ; } $ this -> createTable ( ) ; $ this -> tableExists = true ; return true ; }
Check if the version db table exists and create it if not.

@return bool true if table has been created, false if it was already there

@todo add a 'force' flag to force table re-creation
@todo manage changes to table definition
Check if the version db table exists and create it if not .