Answers for "prestashop alter table if not exists"

0

prestashop alter table if not exists

$columnExists = Db::getInstance()->executeS('SHOW COLUMNS FROM `' . _DB_PREFIX_ . 'orders`  LIKE \'sendnow\'');

if (empty($columnExists)) {
    $sql[] = 'ALTER TABLE `' . _DB_PREFIX_ . 'orders`
            ADD sendnow tinyInt(1);';
}
Posted by: Guest on April-27-2021

Code answers related to "prestashop alter table if not exists"

Browse Popular Code Answers by Language