You are here

function uc_global_quote_schema in Ubercart Global Quote 6

Same name and namespace in other branches
  1. 7 uc_global_quote.install \uc_global_quote_schema()

Implementation of hook_schema().

File

./uc_global_quote.install, line 11
uc_global_quote installation file

Code

function uc_global_quote_schema() {
  $schema['uc_global_quote'] = array(
    'description' => '',
    'fields' => array(
      'qid' => array(
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'zid' => array(
        'type' => 'numeric',
        'not null' => FALSE,
      ),
      'min' => array(
        'type' => 'numeric',
        'precision' => 16,
        'scale' => 5,
        'not null' => TRUE,
        'default' => 0.0,
      ),
      'max' => array(
        'type' => 'numeric',
        'precision' => 16,
        'scale' => 5,
        'not null' => TRUE,
        'default' => 0.0,
      ),
      'rate' => array(
        'type' => 'numeric',
        'precision' => 16,
        'scale' => 5,
        'not null' => TRUE,
        'default' => 0.0,
      ),
    ),
    'primary key' => array(
      'qid',
    ),
  );
  return $schema;
}