* @copyright 2007-2022 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ $sql = array(); $sql[] = 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'pchcustomerfield` ( `id_pchcustomerfield` int(11) NOT NULL AUTO_INCREMENT, `position` int(10) unsigned NOT NULL DEFAULT 0, `active` tinyint(1) unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id_pchcustomerfield`) ) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8;'; $sql[] = 'CREATE TABLE IF NOT EXISTS ' . _DB_PREFIX_ . 'pchcustomerfield_lang( `id_pchcustomerfield` int(11) NOT NULL, `id_lang` int(11) NOT NULL, `title` varchar(255) DEFAULT NULL, PRIMARY KEY (`id_pchcustomerfield`,`id_lang`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'; foreach ($sql as $query) { if (Db::getInstance()->execute($query) == false) { return false; } }