Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -18,42 +18,42 @@ function statistics_uninstall() {
|
|||
* Implements hook_schema().
|
||||
*/
|
||||
function statistics_schema() {
|
||||
$schema['node_counter'] = array(
|
||||
$schema['node_counter'] = [
|
||||
'description' => 'Access statistics for {node}s.',
|
||||
'fields' => array(
|
||||
'nid' => array(
|
||||
'fields' => [
|
||||
'nid' => [
|
||||
'description' => 'The {node}.nid for these statistics.',
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
),
|
||||
'totalcount' => array(
|
||||
],
|
||||
'totalcount' => [
|
||||
'description' => 'The total number of times the {node} has been viewed.',
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
'size' => 'big',
|
||||
),
|
||||
'daycount' => array(
|
||||
],
|
||||
'daycount' => [
|
||||
'description' => 'The total number of times the {node} has been viewed today.',
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
'size' => 'medium',
|
||||
),
|
||||
'timestamp' => array(
|
||||
],
|
||||
'timestamp' => [
|
||||
'description' => 'The most recent time the {node} has been viewed.',
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
),
|
||||
),
|
||||
'primary key' => array('nid'),
|
||||
);
|
||||
],
|
||||
],
|
||||
'primary key' => ['nid'],
|
||||
];
|
||||
|
||||
return $schema;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ function statistics_schema() {
|
|||
*/
|
||||
function statistics_update_8001() {
|
||||
if (!\Drupal::moduleHandler()->moduleExists('node')) {
|
||||
if (\Drupal::service('module_installer')->uninstall(array('statistics'), TRUE)) {
|
||||
if (\Drupal::service('module_installer')->uninstall(['statistics'], TRUE)) {
|
||||
return 'The statistics module depends on the node module and has therefore been uninstalled.';
|
||||
}
|
||||
else {
|
||||
|
@ -79,3 +79,10 @@ function statistics_update_8002() {
|
|||
// Set the new configuration setting for max age to the initial value.
|
||||
\Drupal::configFactory()->getEditable('statistics.settings')->set('display_max_age', 3600)->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove access_log settings.
|
||||
*/
|
||||
function statistics_update_8300() {
|
||||
\Drupal::configFactory()->getEditable('statistics.settings')->clear('access_log')->save();
|
||||
}
|
||||
|
|
Reference in a new issue