You are here

function ad_weight_probability_schema in Advertisement 6.3

Same name and namespace in other branches
  1. 6.2 weight/probability/ad_weight_probability.install \ad_weight_probability_schema()

Implementation of hook_schema().

File

weight/probability/ad_weight_probability.install, line 13

Code

function ad_weight_probability_schema() {
  $schema['ad_weight_probability'] = array(
    'description' => 'Stores ad_weight_probability data.',
    'fields' => array(
      'aid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
        'description' => 'Ad id',
      ),
      'probability' => array(
        'type' => 'int',
        'length' => 3,
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'Probability',
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}