function acquia_contenthub_schema in Acquia Content Hub 8
Implements hook_schema().
Defines the database tables used by this module.
See also
File
- ./
acquia_contenthub.install, line 21 - Install, update and uninstall functions for the acquia_contenthub module.
Code
function acquia_contenthub_schema() {
$schema['acquia_contenthub_entities_tracking'] = [
'fields' => [
'entity_type' => [
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
],
'entity_id' => [
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
'entity_uuid' => [
'type' => 'char',
'length' => 36,
'not null' => TRUE,
'default' => '',
],
'status_export' => [
'description' => 'The status of an exported entity.',
'type' => 'varchar',
'default' => '',
'not null' => TRUE,
'length' => 36,
],
'status_import' => [
'description' => 'The status of an imported entity.',
'type' => 'varchar',
'length' => 36,
'default' => '',
'not null' => TRUE,
],
'modified' => [
'description' => 'The CDF entity\'s modified field.',
'type' => 'varchar',
'default' => '',
'not null' => TRUE,
'length' => 36,
],
'origin' => [
'type' => 'char',
'length' => 36,
'not null' => TRUE,
'default' => '',
],
],
'indexes' => [
'origin' => [
'origin',
],
],
'unique keys' => [
'entity' => [
'entity_type',
'entity_id',
],
'entity_uuid' => [
'entity_uuid',
],
],
];
return $schema;
}