You are here

function slickgrid_schema in Slickgrid 6

Same name and namespace in other branches
  1. 7.2 slickgrid.install \slickgrid_schema()
  2. 7 slickgrid.install \slickgrid_schema()

Implementation of hook_schema().

File

./slickgrid.install, line 27

Code

function slickgrid_schema() {
  $schema['slickgrid'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The users UID.',
      ),
      'view_name' => array(
        'type' => 'varchar',
        'length' => '32',
        'default' => '',
        'not null' => TRUE,
        'description' => 'The unique name of the view. May only be alphanumeric characters plus underscores.',
      ),
      'settings' => array(
        'type' => 'text',
        'not null' => FALSE,
        'size' => 'big',
        'description' => 'A serialized array of view settings.',
      ),
    ),
    'primary key' => array(
      'uid',
      'view_name',
    ),
  );
  return $schema;
}