File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ public function deleteTab($className)
8787 */
8888 private function uninstallDatabase ()
8989 {
90+ if (defined ('PACKETERY_KEEP_DB_TABLES ' ) && PACKETERY_KEEP_DB_TABLES ) {
91+ return true ;
92+ }
93+
9094 $ sql = [];
9195 // remove tables with payment and carrier settings, and with carriers
9296 $ sql [] = 'DROP TABLE IF EXISTS ` ' . _DB_PREFIX_ . 'packetery_payment` ' ;
@@ -140,6 +144,10 @@ private function unregisterHooks()
140144 */
141145 private function deleteConfiguration ()
142146 {
147+ if (defined ('PACKETERY_KEEP_DB_TABLES ' ) && PACKETERY_KEEP_DB_TABLES ) {
148+ return true ;
149+ }
150+
143151 return (
144152 Configuration::deleteByName ('PACKETERY_APIPASS ' ) &&
145153 Configuration::deleteByName ('PACKETERY_ESHOP_ID ' ) &&
You can’t perform that action at this time.
0 commit comments