From 125e9f41dc6887ac10db31ea340162f0fec0eaec Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Thu, 8 Nov 2018 14:08:28 +0000
Subject: [PATCH] Issue #3011237 by kiamlaluno, benjifisher: user_schema() uses
 the wrong structure for foreign_keys

---
 core/modules/user/user.install | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/core/modules/user/user.install b/core/modules/user/user.install
index a2b2806d888f..600c2ec26547 100644
--- a/core/modules/user/user.install
+++ b/core/modules/user/user.install
@@ -53,7 +53,12 @@ function user_schema() {
       'name' => ['name'],
     ],
     'foreign keys' => [
-      'uid' => ['users' => 'uid'],
+      'data_user' => [
+        'table' => 'users',
+        'columns' => [
+          'uid' => 'uid',
+        ],
+      ],
     ],
   ];
 
-- 
GitLab