From 0097808bddf2de94c772f7ca94c32bf373ebc730 Mon Sep 17 00:00:00 2001 From: dannylamb Date: Mon, 27 Jul 2020 15:16:27 -0300 Subject: [PATCH] Removing isladora_version_count table (#788) --- islandora.install | 47 +++++++++++------------------------------------ 1 file changed, 11 insertions(+), 36 deletions(-) diff --git a/islandora.install b/islandora.install index 011ecb196..98552efad 100644 --- a/islandora.install +++ b/islandora.install @@ -5,42 +5,6 @@ * Install/update hook implementations. */ -/** - * Implements hook_schema(). - */ -function islandora_schema() { - $schema = []; - $schema['islandora_version_count'] = [ - 'description' => 'Keeps track of the number of changes to an entity', - 'fields' => [ - 'id' => [ - 'description' => 'Autoincrementing id for record', - 'type' => 'serial', - 'unsigned' => TRUE, - 'not null' => TRUE, - ], - 'uuid' => [ - 'description' => 'UUID for an entity', - 'type' => 'varchar', - 'length' => 128, - 'not null' => TRUE, - 'unique' => TRUE, - ], - 'count' => [ - 'description' => 'Number of times an entity has been updated.', - 'type' => 'int', - 'unsigned' => TRUE, - 'default' => 0, - ], - ], - 'primary key' => ['id'], - 'unique keys' => [ - 'uuid' => ['uuid'], - ], - ]; - return $schema; -} - /** * Delete the 'delete_media' action we used to provide, if it exists. * @@ -80,3 +44,14 @@ function islandora_update_8002(&$sandbox) { // Force drupal to reload the config. \Drupal::service('plugin.manager.condition')->clearCachedDefinitions(); } + +/** + * Deletes the islandora_version_count table. + * + * We never implemented the functionality. + */ +function islandora_update_8003(&$sandbox) { + \Drupal::service('database') + ->schema() + ->dropTable('islandora_version_count'); +}