src/Propel/Platform/DefaultPlatform.php
public function getColumnDDL(Column $col)
	{
		$domain = $col->getDomain();
		
		$ddl = array($this->quoteIdentifier($col->getName()));
		$sqlType = $domain->getSqlType();
		if ($this->hasSize($sqlType)) {
			$ddl []= $sqlType . $domain->printSize();
		} else {
			$ddl []= $sqlType;
		}
		if ($default = $this->getColumnDefaultValueDDL($col)) {
			$ddl []= $default;
		}
		if ($notNull = $this->getNullString($col->isNotNull())) {
			$ddl []= $notNull;
		}
		if ($autoIncrement = $col->getAutoIncrementString()) {
			$ddl []= $autoIncrement;
		}

		return implode(' ', $ddl);
	}
public function getColumnDDL(Column $col)
	{
		$domain = $col->getDomain();
		
		$ddl = array($this->quoteIdentifier($col->getName()));
		$sqlType = $domain->getSqlType();
		if ($this->hasSize($sqlType)) {
			$ddl []= $sqlType . $domain->printSize();
		} else {
			$ddl []= $sqlType;
		}
		if ($default = $this->getColumnDefaultValueDDL($col)) {
			$ddl []= $default;
		}
		if ($notNull = $this->getNullString($col->isNotNull())) {
			$ddl []= $notNull;
		}
		if ($autoIncrement = $col->getAutoIncrementString()) {
			$ddl []= $autoIncrement;
		}

		return implode(' ', $ddl);
	}
public function getColumnDDL ( Column $ col ) { $ domain = $ col -> getDomain ( ) ; $ ddl = array ( $ this -> quoteIdentifier ( $ col -> getName ( ) ) ) ; $ sqlType = $ domain -> getSqlType ( ) ; if ( $ this -> hasSize ( $ sqlType ) ) { $ ddl [ ] = $ sqlType . $ domain -> printSize ( ) ; } else { $ ddl [ ] = $ sqlType ; } if ( $ default = $ this -> getColumnDefaultValueDDL ( $ col ) ) { $ ddl [ ] = $ default ; } if ( $ notNull = $ this -> getNullString ( $ col -> isNotNull ( ) ) ) { $ ddl [ ] = $ notNull ; } if ( $ autoIncrement = $ col -> getAutoIncrementString ( ) ) { $ ddl [ ] = $ autoIncrement ; } return implode ( ' ' , $ ddl ) ; }
Builds the DDL SQL for a Column object.
@return     string
Builds the DDL SQL for a Column object .