function DatabaseSchema_mysql::getFieldTypeMap

Overrides DatabaseSchema::getFieldTypeMap

1 call to DatabaseSchema_mysql::getFieldTypeMap()
DatabaseSchema_mysql::processField in includes/database/mysql/schema.inc
Set database-engine specific properties for a field.

File

includes/database/mysql/schema.inc, line 228

Class

DatabaseSchema_mysql

Code

public function getFieldTypeMap() {
    // Put :normal last so it gets preserved by array_flip. This makes
    // it much easier for modules (such as schema.module) to map
    // database types back into schema types.
    // $map does not use drupal_static as its value never changes.
    static $map = array(
        'varchar:normal' => 'VARCHAR',
        'char:normal' => 'CHAR',
        'text:tiny' => 'TINYTEXT',
        'text:small' => 'TINYTEXT',
        'text:medium' => 'MEDIUMTEXT',
        'text:big' => 'LONGTEXT',
        'text:normal' => 'TEXT',
        'serial:tiny' => 'TINYINT',
        'serial:small' => 'SMALLINT',
        'serial:medium' => 'MEDIUMINT',
        'serial:big' => 'BIGINT',
        'serial:normal' => 'INT',
        'int:tiny' => 'TINYINT',
        'int:small' => 'SMALLINT',
        'int:medium' => 'MEDIUMINT',
        'int:big' => 'BIGINT',
        'int:normal' => 'INT',
        'float:tiny' => 'FLOAT',
        'float:small' => 'FLOAT',
        'float:medium' => 'FLOAT',
        'float:big' => 'DOUBLE',
        'float:normal' => 'FLOAT',
        'numeric:normal' => 'DECIMAL',
        'blob:big' => 'LONGBLOB',
        'blob:normal' => 'BLOB',
    );
    return $map;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.