Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to keep plugin data when uninstalling #7083

Open
RomanovM opened this issue Feb 19, 2024 · 1 comment
Open

Add a way to keep plugin data when uninstalling #7083

RomanovM opened this issue Feb 19, 2024 · 1 comment

Comments

@RomanovM
Copy link
Contributor

nopCommerce version: 4.60

We need a generic way to keep plugin data when uninstalling to avoid creating such a method in each plugin.

Suggestion: https://www.nopcommerce.com/boards/topic/84184/remove-all-plugin-tables-on-plugin-uninstall-setting

@SelectSystemsInternational

I have two settings in my Plugins

Delete Plugin Tables on Uninstall - If ticked it will delete the tables

  • Does mean you need to implement Up and Down methods and check the setting before deleting tables
  • Need to check if tables exisit before creating on install (which I think is standard now)

Delete Configuration Data on Uninstall - If ticked will delete the settings assicated withthe plugin

  • Need to check if the settings exist before overwriting on install

If ever needed you have to option of completely unistall and delete plugin but not loose config and/or tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants