You are here

function system_update_7078 in Drupal 7

Add binary to {date_formats}.format.

Related topics

File

modules/system/system.install, line 3264
Install, update and uninstall functions for the system module.

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',
      ),
    ),
  ));
}