What is the purpose behind having DROP TABLE IF EXISTS
in commented SQL in Magento installers?
From app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php:
-- DROP TABLE IF EXISTS {$this->getTable('admin_assert')};
CREATE TABLE {$this->getTable('admin_assert')} (
I know in mysqldump certain comments can be executed – how is this used in Magento setup scripts?
Best Answer
I'm sure it was inserted for debugging purposes to test the creation of the table.
Then it was commented to not use it anymore and forgotten :)
Look on the version, it is pre-beta.