You are here

function term_level_field_schema in Term Level Field 7

Implements hook_field_schema().

File

./term_level.install, line 6

Code

function term_level_field_schema($field) {
  return array(
    'columns' => array(
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
      'level' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'tid' => array(
        'tid',
      ),
    ),
  );
}