* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ /** * In some cases you should not drop the tables. * Maybe the merchant will just try to reset the module * but does not want to loose all of the data associated to the module. */ $sql = []; $sql[] = 'DROP TABLE IF EXISTS `' . _DB_PREFIX_ . 'psgdpr_consent`'; $sql[] = 'DROP TABLE IF EXISTS `' . _DB_PREFIX_ . 'psgdpr_consent_lang`'; foreach ($sql as $query) { if (Db::getInstance()->execute($query) == false) { return false; } }