You are here

function google_image_sitemap_schema in Google Image Sitemap 8

Same name and namespace in other branches
  1. 6 google_image_sitemap.install \google_image_sitemap_schema()
  2. 7 google_image_sitemap.install \google_image_sitemap_schema()
  3. 2.0.x google_image_sitemap.install \google_image_sitemap_schema()
  4. 1.0.x google_image_sitemap.install \google_image_sitemap_schema()

Implements hook_schema().

File

./google_image_sitemap.install, line 11
Install, update and uninstall functions for the google_image_sitemap module.

Code

function google_image_sitemap_schema() {
  $schema['google_image_sitemap'] = [
    'description' => 'Stores image sitemap settings.',
    'fields' => [
      'sid' => [
        'type' => 'serial',
        'not null' => TRUE,
        'description' => 'Primary Key: Unique block ID.',
      ],
      'node_type' => [
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
        'description' => "The content type for which we want to generate sitemap.",
      ],
      'license' => [
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
        'default' => '',
        'description' => 'license url of sitemap.',
      ],
      'created' => [
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'timestamp of created request time',
      ],
      'last_updated' => [
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'timestamp of generated request time.',
      ],
    ],
    'primary key' => [
      'sid',
    ],
  ];
  return $schema;
}