You are here

function commerce_autosku_schema in Commerce AutoSKU 7

@file Install and update hooks for commerce_autosku

File

./commerce_autosku.install, line 8
Install and update hooks for commerce_autosku

Code

function commerce_autosku_schema() {
  $schema['commerce_autosku_patterns'] = array(
    'description' => 'TODO: please describe this table!',
    'export' => array(
      'key' => 'product_type',
      'key name' => 'Product Type',
      'api' => array(
        'owner' => 'commerce_autosku',
        'api' => 'autosku_pattern',
        'minimum_version' => 1,
        'current_version' => 1,
      ),
    ),
    'fields' => array(
      'product_type' => array(
        'description' => 'Product type identifier.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
      ),
      'pattern' => array(
        'description' => 'Token replacement pattern.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'advanced' => array(
        'description' => 'Serialized array of additional settings.',
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
        'serialize' => TRUE,
      ),
    ),
    'primary key' => array(
      'product_type',
    ),
  );
  return $schema;
}