I'm wondering if there is any possibility of creating Custom Table outside install or update script, and without using the query("CREATE TABLE statement"), in Magento 1.9+
Magento – Create/Change Custom Table Dynamically
databasemagento-1.9module
databasemagento-1.9module
I'm wondering if there is any possibility of creating Custom Table outside install or update script, and without using the query("CREATE TABLE statement"), in Magento 1.9+
Best Answer
The Magento way of creating tables in install scripts is not using raw SQL but the Zend API:
More on the topic: http://inchoo.net/magento/magento-install-install-upgrade-data-and-data-upgrade-scripts/
You can do the same anywhere else if you replace
$installer->getConnection()
withMage::getSingleton('core/resource')->getConnection('core_write');
.