Closed Insolita closed 10 years ago
(tested with mysql table only) For fix in AppUtility.php
private function runMySql() { if ( isset($this->array['dbType']) ) $this->string .= $this->Tab . "'{$this->array['name']}' => '" . strtoupper($this->array['dbType']) . ""; if ( isset($this->array['allowNull']) ) $this->string .= ($this->array['allowNull']) ? ' NULL' : ' NOT NULL'; if ( isset($this->array['autoIncrement']) ) $this->string .= ($this->array['autoIncrement']) ? ' AUTO_INCREMENT' : ''; if ( isset($this->array['defaultValue']) ) if(!is_array($this->array['defaultValue'])){ $this->string .= (empty($this->array['defaultValue'])) ? '' : " DEFAULT \'{$this->array['defaultValue']}\'"; }else{ $this->string .= (empty($this->array['defaultValue'])) ? '' : " DEFAULT ".$this->array['defaultValue']['expression']." "; } }
Thank you, updated.
(tested with mysql table only) For fix in AppUtility.php