You are here

function fivestar_field_schema in Fivestar 7.2

Hook_field_schema().

File

./fivestar.install, line 18
Install, update, and uninstall functions the Fivestar module.

Code

function fivestar_field_schema() {
  return array(
    'columns' => array(
      'rating' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
        'sortable' => TRUE,
      ),
      'target' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
      ),
    ),
  );
}