function simple_sitemap_views_schema in Simple XML sitemap (Views integration) 8
Implements hook_schema().
File
- ./
simple_sitemap_views.install, line 41 - Install and uninstall hooks for the simple_sitemap_views module.
Code
function simple_sitemap_views_schema() {
$schema['simple_sitemap_views'] = [
'description' => 'Index of argument values for view pages.',
'fields' => [
'id' => [
'type' => 'serial',
'not null' => TRUE,
'description' => 'Primary Key: Unique ID for argument values.',
],
'view_id' => [
'type' => 'varchar_ascii',
'not null' => TRUE,
'default' => '',
'length' => 128,
'description' => 'The ID of the view.',
],
'display_id' => [
'type' => 'varchar_ascii',
'not null' => TRUE,
'default' => '',
'length' => 128,
'description' => 'The ID of the view display.',
],
'arguments_ids' => [
'type' => 'varchar',
'not null' => TRUE,
'default' => '',
'length' => 1024,
'description' => 'A string representation of the set of argument identifiers.',
],
'arguments_values' => [
'type' => 'varchar',
'not null' => TRUE,
'default' => '',
'length' => 1024,
'description' => 'A string representation of the set of argument values.',
],
],
'primary key' => [
'id',
],
'indexes' => [
'view' => [
'view_id',
],
'display' => [
'view_id',
'display_id',
],
'arguments_ids' => [
'view_id',
'display_id',
'arguments_ids',
],
],
];
return $schema;
}