function elasticsearch_connector_schema in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 elasticsearch_connector.install \elasticsearch_connector_schema()
- 7.2 elasticsearch_connector.install \elasticsearch_connector_schema()
Implements hook_schema().
File
- ./
elasticsearch_connector.install, line 57 - The installtion file for elasticsearch_connector module.
Code
function elasticsearch_connector_schema() {
$schema['elasticsearch_connector_cluster'] = array(
'description' => 'The base table for elasticsearch clusters.',
'export' => array(
'key' => 'cluster_id',
'admin_title' => 'name',
'api' => array(
'owner' => 'elasticsearch_connector',
'api' => 'elasticsearch_connector_defaults',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'cluster_id' => array(
'description' => 'Unique identifier for the cluster environment',
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'name' => array(
'description' => 'Human-readable name for the cluster',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'url' => array(
'description' => 'URL of master Node.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'status' => array(
'description' => 'Boolean indicating whether the entity is active or not.',
'type' => 'int',
'not null' => TRUE,
'default' => 1,
),
'options' => array(
'description' => 'Other serialized options available for the cluster',
'type' => 'blob',
'not null' => TRUE,
'size' => 'normal',
),
),
'indexes' => array(
'status_idx' => array(
'status',
),
),
'unique keys' => array(),
'foreign keys' => array(),
'primary key' => array(
'cluster_id',
),
);
return $schema;
}