Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/user/user.install @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
11 function user_schema() { | 11 function user_schema() { |
12 $schema['users_data'] = [ | 12 $schema['users_data'] = [ |
13 'description' => 'Stores module data as key/value pairs per user.', | 13 'description' => 'Stores module data as key/value pairs per user.', |
14 'fields' => [ | 14 'fields' => [ |
15 'uid' => [ | 15 'uid' => [ |
16 'description' => 'Primary key: {users}.uid for user.', | 16 'description' => 'The {users}.uid this record affects.', |
17 'type' => 'int', | 17 'type' => 'int', |
18 'unsigned' => TRUE, | 18 'unsigned' => TRUE, |
19 'not null' => TRUE, | 19 'not null' => TRUE, |
20 'default' => 0, | 20 'default' => 0, |
21 ], | 21 ], |
51 'indexes' => [ | 51 'indexes' => [ |
52 'module' => ['module'], | 52 'module' => ['module'], |
53 'name' => ['name'], | 53 'name' => ['name'], |
54 ], | 54 ], |
55 'foreign keys' => [ | 55 'foreign keys' => [ |
56 'uid' => ['users' => 'uid'], | 56 'data_user' => [ |
57 'table' => 'users', | |
58 'columns' => [ | |
59 'uid' => 'uid', | |
60 ], | |
61 ], | |
57 ], | 62 ], |
58 ]; | 63 ]; |
59 | 64 |
60 return $schema; | 65 return $schema; |
61 } | 66 } |