protected function installTable(Cache $cache, Table $table) { //$this->output('Installing table ' . $table->getName()); foreach ($table->getFields() as $field) { $this->sql[] = $this->installField($cache, $table, $field); } foreach ($table->getConstraints() as $constraint) { $this->installNewConstraint($cache, $table, $constraint); } if ($this->sql) { $this->sqls[] = 'CREATE TABLE IF NOT EXISTS `' . $table->getName() . '` (' . "\n" . implode(",\n", $this->sql) . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8'; } }