Closed (fixed)
Project:
Statistics
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2024 at 10:56 UTC
Updated:
17 Nov 2025 at 13:15 UTC
Jump to comment: Most recent
Statistics - How to migrate to the new module without losing data?
Drupal 10.3.10
Comments
Comment #2
cilefen commentedI am not sure anything is required except to add the contributed module into the codebase when upgrading to Drupal 11.
Nevertheless I am moving this issue to the contributed project because that is a better place for questions.
Comment #3
freelylw commentedsame question here, I have 100k+ views count for each of my users, I can't lose those views count, should I just enable this new module and disable the previous core Statistics module, then the previous node count will be kept ? Thanks
Comment #4
xmacinfocomposer require drupal/statistics/admin/config/system/statisticsDo not uninstall at anytime. Doing so will delete all stats,
Since the module is using the same namespace, the contrib module should be automatically enabled after running the composer require command.
I did not loose any statistics with this module. But I played it safe by performing a backup before switching to the contrib Statistics module.
Also note this (taken from this module page):
Comment #5
berdirYes, this is not a new module. It's the same module, it just lives in a different place now.
Comment #7
fgmContrib record updated. Thanks all.
Comment #9
ressaSee also this related issue, since clearing caches can be a challenge.