Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8342 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 21
9458
2
ธ.ค. 18
11737
1
มี.ค. 15
3889
1
มี.ค. 15
10724
1
พ.ย. 16
3663