跳至內容
選單
此問題已被標幟
1 回覆
8206 瀏覽次數

When I uninstall a module, its tables are deleted from the DB. 

 

Is there any way to avoid this behavior and don't lose the data?

頭像
捨棄

Can you please tell us more about your use case? Why do you want to keep the data? Would like to be able to reinstall the module and keep the data for that moment?

作者

Hi Miku, yes, it is the idea, to be able to have the data if we ever decide to reinstall the module.

最佳答案

You might want to consider backuping the data before uninstalling the module and restoring the backup data when it's needed again. This would be a universal solution.

The other option is to leave the module installed and instead of uninstalling it, remove all access rights from users that are related to the module. I guess one option is just to hide the menu item. These options aren't good solutions with modules that somehow modify existing modules.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 21
9319
2
12月 18
11554
1
3月 15
3815
1
3月 15
10585
1
11月 16
3566