specification; $params = array(); $params[] = $this->name; $params[] = $this->type; $types = array(self::TYPE_IDENTIFIER, self::TYPE_LITERAL); if (!$this->isNullable) { $spec .= ' NOT NULL'; } if ($this->default !== null) { $spec .= ' DEFAULT %s'; $params[] = $this->default; $types[] = self::TYPE_VALUE; } $options = $this->getOptions(); if (isset($options['on_update'])) { $spec .= ' %s'; $params[] = 'ON UPDATE CURRENT_TIMESTAMP'; $types[] = self::TYPE_LITERAL; } $data = array(array( $spec, $params, $types, )); foreach ($this->constraints as $constraint) { $data[] = ' '; $data = array_merge($data, $constraint->getExpressionData()); } return $data; } }