function system_update_7078

Add binary to {date_formats}.format.

Related topics

File

modules/system/system.install, line 3283

Code

function system_update_7078() {
    db_drop_unique_key('date_formats', 'formats');
    db_change_field('date_formats', 'format', 'format', array(
        'description' => 'The date format string.',
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
        'binary' => TRUE,
    ), array(
        'unique keys' => array(
            'formats' => array(
                'format',
                'type',
            ),
        ),
    ));
}

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