Changeset 4779 for branches/1.0/lib/Doctrine/Export.php
- Timestamp:
- 08/18/08 21:44:07 (19 months ago)
- Files:
-
- 1 modified
-
branches/1.0/lib/Doctrine/Export.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Export.php
r4778 r4779 716 716 ' ' . $this->getCollationFieldDeclaration($field['collation']) : ''; 717 717 718 $notnull = (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : '';718 $notnull = $this->getNotNullFieldDeclaration($field); 719 719 720 720 $unique = (isset($field['unique']) && $field['unique']) ? … … 774 774 return $default; 775 775 } 776 777 778 /** 779 * getDefaultDeclaration 780 * Obtain DBMS specific SQL code portion needed to set a NOT NULL 781 * declaration to be used in statements like CREATE TABLE. 782 * 783 * @param array $field field definition array 784 * @return string DBMS specific SQL code portion needed to set a default value 785 */ 786 public function getNotNullFieldDeclaration(array $definition) 787 { 788 return (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ''; 789 } 790 776 791 777 792 /**