Magento Setup scripts explained with example

Since its highly discouraged from magento to run custom queries from setup script . If you are using custom mysql query from setup script then you might face problem while fetching their values on other place because in case of custom query your table might not be treated as an entity. For example, You can(…)