Changeset 4788
- Timestamp:
- 08/22/08 05:10:56 (5 months ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/DataDict/Mysql.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/DataDict/Mysql.php
r4778 r4788 471 471 $notnull = (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ''; 472 472 $unsigned = (isset($field['unsigned']) && $field['unsigned']) ? ' UNSIGNED' : ''; 473 $comment = (isset($field['comment']) && $field['comment']) 474 ? " COMMENT '" . $field['comment'] . "'" : ''; 473 475 474 476 $name = $this->conn->quoteIdentifier($name, true); 475 477 476 return $name . ' ' . $this->getNativeDeclaration($field) . $unsigned . $default . $notnull . $autoinc; 478 return $name . ' ' . $this->getNativeDeclaration($field) . $unsigned 479 . $default . $notnull . $autoinc . $comment; 477 480 } 478 481 }