Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -9,53 +9,53 @@
|
|||
* Implements hook_schema().
|
||||
*/
|
||||
function user_schema() {
|
||||
$schema['users_data'] = array(
|
||||
$schema['users_data'] = [
|
||||
'description' => 'Stores module data as key/value pairs per user.',
|
||||
'fields' => array(
|
||||
'uid' => array(
|
||||
'fields' => [
|
||||
'uid' => [
|
||||
'description' => 'Primary key: {users}.uid for user.',
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
),
|
||||
'module' => array(
|
||||
],
|
||||
'module' => [
|
||||
'description' => 'The name of the module declaring the variable.',
|
||||
'type' => 'varchar_ascii',
|
||||
'length' => DRUPAL_EXTENSION_NAME_MAX_LENGTH,
|
||||
'not null' => TRUE,
|
||||
'default' => '',
|
||||
),
|
||||
'name' => array(
|
||||
],
|
||||
'name' => [
|
||||
'description' => 'The identifier of the data.',
|
||||
'type' => 'varchar_ascii',
|
||||
'length' => 128,
|
||||
'not null' => TRUE,
|
||||
'default' => '',
|
||||
),
|
||||
'value' => array(
|
||||
],
|
||||
'value' => [
|
||||
'description' => 'The value.',
|
||||
'type' => 'blob',
|
||||
'not null' => FALSE,
|
||||
'size' => 'big',
|
||||
),
|
||||
'serialized' => array(
|
||||
],
|
||||
'serialized' => [
|
||||
'description' => 'Whether value is serialized.',
|
||||
'type' => 'int',
|
||||
'size' => 'tiny',
|
||||
'unsigned' => TRUE,
|
||||
'default' => 0,
|
||||
),
|
||||
),
|
||||
'primary key' => array('uid', 'module', 'name'),
|
||||
'indexes' => array(
|
||||
'module' => array('module'),
|
||||
'name' => array('name'),
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'uid' => array('users' => 'uid'),
|
||||
),
|
||||
);
|
||||
],
|
||||
],
|
||||
'primary key' => ['uid', 'module', 'name'],
|
||||
'indexes' => [
|
||||
'module' => ['module'],
|
||||
'name' => ['name'],
|
||||
],
|
||||
'foreign keys' => [
|
||||
'uid' => ['users' => 'uid'],
|
||||
],
|
||||
];
|
||||
|
||||
return $schema;
|
||||
}
|
||||
|
@ -67,30 +67,25 @@ function user_install() {
|
|||
$storage = \Drupal::entityManager()->getStorage('user');
|
||||
// Insert a row for the anonymous user.
|
||||
$storage
|
||||
->create(array(
|
||||
->create([
|
||||
'uid' => 0,
|
||||
'status' => 0,
|
||||
'name' => '',
|
||||
))
|
||||
])
|
||||
->save();
|
||||
|
||||
// We need some placeholders here as name and mail are unique.
|
||||
// This will be changed by the settings form in the installer.
|
||||
$storage
|
||||
->create(array(
|
||||
->create([
|
||||
'uid' => 1,
|
||||
'name' => 'placeholder-for-uid-1',
|
||||
'mail' => 'placeholder-for-uid-1',
|
||||
'status' => TRUE,
|
||||
))
|
||||
])
|
||||
->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* @addtogroup updates-8.1.0-beta
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fix invalid token in the status_blocked email body.
|
||||
*/
|
||||
|
@ -103,7 +98,3 @@ function user_update_8100() {
|
|||
$config->set('status_blocked', $mail)->save(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @} End of "addtogroup updates-8.1.0-beta".
|
||||
*/
|
||||
|
|
Reference in a new issue