You are here

function sheetnode_field_schema_7002 in Sheetnode 7.2

Same name and namespace in other branches
  1. 7 sheetnode.install \sheetnode_field_schema_7002()

Schema function.

2 calls to sheetnode_field_schema_7002()
sheetnode_field_schema in ./sheetnode.install
Implements hook_field_schema().
sheetnode_update_7002 in ./sheetnode.install
Implements hook_update_N().

File

./sheetnode.install, line 173
Install, update and uninstall functions for the sheetnode module.

Code

function sheetnode_field_schema_7002($field) {
  $columns = array(
    'value' => array(
      'description' => 'The worksheet content.',
      'type' => 'text',
      'size' => 'big',
      'not null' => TRUE,
    ),
    'name' => array(
      'description' => 'The worksheet title.',
      'type' => 'varchar',
      'length' => '100',
      'not null' => TRUE,
      'default' => '',
    ),
  );
  $indexes = array(
    'name' => array(
      'name',
    ),
  );
  return array(
    'columns' => $columns,
    'indexes' => $indexes,
  );
}