You are here

function colorizer_schema in Colorizer 7

Implements hook_schema().

File

./colorizer.install, line 11
Installation and update functionality for colorizer.

Code

function colorizer_schema() {
  $schema['colorizer_instance'] = array(
    // Example (partial) specification for table "node".
    'description' => 'The base table for colorizer settings.',
    'fields' => array(
      'instance' => array(
        'description' => 'The {node_type} of this node.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'stylesheet' => array(
        'type' => 'varchar',
        'description' => 'The stylesheet to use for this instance.',
        'default' => '',
        'length' => 255,
      ),
      'palette' => array(
        'description' => 'The palette to use for this instance.',
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'instance',
    ),
  );
  return $schema;
}