protected function _attributeUnsigned(array &$attributes, array &$field)
	{
		if (empty($attributes['UNSIGNED']) || $attributes['UNSIGNED'] !== true)
		{
			return;
		}

		// Reset the attribute in order to avoid issues if we do type conversion
		$attributes['UNSIGNED'] = false;

		if (is_array($this->unsigned))
		{
			foreach (array_keys($this->unsigned) as $key)
			{
				if (is_int($key) && strcasecmp($attributes['TYPE'], $this->unsigned[$key]) === 0)
				{
					$field['unsigned'] = ' UNSIGNED';

					return;
				}
				elseif (is_string($key) && strcasecmp($attributes['TYPE'], $key) === 0)
				{
					$field['type'] = $key;

					return;
				}
			}

			return;
		}

		$field['unsigned'] = ($this->unsigned === true) ? ' UNSIGNED' : '';
	}
protected function _attributeUnsigned(array &$attributes, array &$field)
	{
		if (empty($attributes['UNSIGNED']) || $attributes['UNSIGNED'] !== true)
		{
			return;
		}

		// Reset the attribute in order to avoid issues if we do type conversion
		$attributes['UNSIGNED'] = false;

		if (is_array($this->unsigned))
		{
			foreach (array_keys($this->unsigned) as $key)
			{
				if (is_int($key) && strcasecmp($attributes['TYPE'], $this->unsigned[$key]) === 0)
				{
					$field['unsigned'] = ' UNSIGNED';

					return;
				}
				elseif (is_string($key) && strcasecmp($attributes['TYPE'], $key) === 0)
				{
					$field['type'] = $key;

					return;
				}
			}

			return;
		}

		$field['unsigned'] = ($this->unsigned === true) ? ' UNSIGNED' : '';
	}
protected function _attributeUnsigned ( array & $ attributes , array & $ field ) { if ( empty ( $ attributes [ 'UNSIGNED' ] ) || $ attributes [ 'UNSIGNED' ] !== true ) { return ; } // Reset the attribute in order to avoid issues if we do type conversion $ attributes [ 'UNSIGNED' ] = false ; if ( is_array ( $ this -> unsigned ) ) { foreach ( array_keys ( $ this -> unsigned ) as $ key ) { if ( is_int ( $ key ) && strcasecmp ( $ attributes [ 'TYPE' ] , $ this -> unsigned [ $ key ] ) === 0 ) { $ field [ 'unsigned' ] = ' UNSIGNED' ; return ; } elseif ( is_string ( $ key ) && strcasecmp ( $ attributes [ 'TYPE' ] , $ key ) === 0 ) { $ field [ 'type' ] = $ key ; return ; } } return ; } $ field [ 'unsigned' ] = ( $ this -> unsigned === true ) ? ' UNSIGNED' : '' ; }
Field attribute UNSIGNED

Depending on the unsigned property value:

- TRUE will always set $field['unsigned'] to 'UNSIGNED'
- FALSE will always set $field['unsigned'] to ''
- array(TYPE) will set $field['unsigned'] to 'UNSIGNED',
if $attributes['TYPE'] is found in the array
- array(TYPE => UTYPE) will change $field['type'],
from TYPE to UTYPE in case of a match

@param array &$attributes
@param array &$field

@return null|void
Field attribute UNSIGNED