/** * {@inheritdoc} */ protected function createSchema($execute = true) { $statement = parent::createSchema(false); //Additional table options $options = "ENGINE = {engine}"; $statement = $statement . ' ' . \Spiral\interpolate($options, ['engine' => $this->engine]); if ($execute) { $this->driver->statement($statement); //Not all databases support adding index while table creation, so we can do it after foreach ($this->indexes as $index) { $this->doIndexAdd($index); } } return $statement; }