示例#1
0
 /**
  * Orders the Query Writer to create a table if it does not exist already and
  * adds a note in the build report about the creation.
  *
  * @param OODBBean $bean  bean to update report of
  * @param string           $table table to check and create if not exists
  *
  * @return void
  */
 private function createTableIfNotExists(OODBBean $bean, $table)
 {
     //Does table exist? If not, create
     if (!$this->isFrozen && !$this->tableExists($this->writer->esc($table, TRUE))) {
         $this->writer->createTable($table);
         $bean->setMeta('buildreport.flags.created', TRUE);
     }
 }