private createTableIfNotExists ( RedBeanPHP\OODBBean $bean, string $table ) : void | ||
$bean | RedBeanPHP\OODBBean | bean to update report of |
$table | string | table to check and create if not exists |
Результат | void |
private function createTableIfNotExists(OODBBean $bean, $table)
{
//Does table exist? If not, create
if (!$this->tableExists($this->writer->esc($table, TRUE))) {
$this->writer->createTable($table);
$bean->setMeta('buildreport.flags.created', TRUE);
}
}