function system_update_8049

Create the 'config_snapshot' table.

Related topics

File

drupal/core/modules/system/system.install, line 2003
Install, update and uninstall functions for the system module.

Code

function system_update_8049() {
  $table = array(
    'description' => 'Stores a snapshot of the last imported configuration.',
    'fields' => array(
      'name' => array(
        'description' => 'The identifier for the config object (the name of the file, minus the file extension).',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'data' => array(
        'description' => 'The raw data for this configuration object.',
        'type' => 'blob',
        'not null' => TRUE,
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  db_create_table('config_snapshot', $table);
}