You are here

function paymentreference_field_schema in Payment 7

Implements hook_field_schema().

File

modules/paymentreference/paymentreference.install, line 55
Installation and uninstallation functions.

Code

function paymentreference_field_schema($field) {
  if ($field['type'] == 'paymentreference') {
    $schema = array(
      'columns' => array(
        'pid' => array(
          'type' => 'int',
          'size' => 'big',
          'not null' => TRUE,
        ),
      ),
      'foreign_keys' => array(
        'pid' => array(
          'table' => 'payment',
          'columns' => array(
            'pid' => 'pid',
          ),
        ),
      ),
      'indexes' => array(
        'pid' => array(
          'pid',
        ),
      ),
    );
  }
  return $schema;
}