Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / permissions_by_term / permissions_by_term.install
index 50bc550ac1c54493f3c99adfd69a628c9de78e5c..19a68e41f1a941c575866ab327f1c0b111cb528f 100644 (file)
@@ -37,8 +37,6 @@ function permissions_by_term_schema() {
       ],
     ],
     'primary key' => [
-      'tid',
-      'uid',
     ],
   ];
 
@@ -64,8 +62,6 @@ function permissions_by_term_schema() {
       ],
     ],
     'primary key' => [
-      'tid',
-      'rid',
     ],
   ];
 
@@ -167,4 +163,15 @@ function permissions_by_term_update_8152() {
       ]);
     }
   }
-}
\ No newline at end of file
+}
+
+/**
+ * Remove primary keys due language codes.
+ */
+function permissions_by_term_update_8153() {
+  $database = \Drupal::database();
+  $schema = $database->schema();
+
+  $schema->dropPrimaryKey('permissions_by_term_role');
+  $schema->dropPrimaryKey('permissions_by_term_user');
+}