You are here

function permissions_by_term_update_8153 in Permissions by Term 8.2

Same name and namespace in other branches
  1. 8 permissions_by_term.install \permissions_by_term_update_8153()

Remove primary keys due language codes.

File

./permissions_by_term.install, line 205
Install, update and uninstall functions for the permissions_by_term module.

Code

function permissions_by_term_update_8153() {
  $database = \Drupal::database();
  $schema = $database
    ->schema();
  $schema
    ->dropPrimaryKey('permissions_by_term_role');
  $schema
    ->dropPrimaryKey('permissions_by_term_user');
}