Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8212613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:49:00+00:00 2026-06-07T10:49:00+00:00

Magento doesn’t run installer script of my module.But setup script version is getting added

  • 0

Magento doesn’t run installer script of my module.But setup script version is getting added in core_resource table.Here are my files

Part of config.xml

    <config>
        <modules>
            <Company_Brands>
                <version>1.0.0</version>
            </Company_Brands>
        </modules>
        <global>
            <models>
                <brands>
                    <class>Company_Brands_Model</class>
                    <resourceModel>brands_mysql4</resourceModel>
                </brands>
                <brands_mysql4>
                    <class>Company_Brands_Model_Mysql4</class>              
                </brands_mysql4>
            </models>

        <resources>
            <brands_setup>
                <setup>
                    <module>Company_Brands</module>
                    <class>Company_Brands_Model_Mysql4_Setup</class>
                </setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </brands_setup>
            <brands_read>
                <connection>
                    <use>core_read</use>
                </connection>
            </brands_read>
            <brands_write>
                <connection>
                    <use>core_write</use>
                </connection>
            </brands_write>
        </resources>
</global>
</config>

app/code/local/Company/Brands/sql/brands_setup/mysql4-install-1.0.0.php

$installer = $this;
$installer->startSetup();

$data = array(
    'label' => 'Brands',
    'type' => 'select'
    'input' => 'text',
    'global'=> Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
    'required'=>false,
    'is_configurable'=>true,
    'compareble'=>true,
    'filterable' =>true,
    'searchable'=>true
);

$installer->addAttribute('catalog_product','some_brands',$data);

$installer->endSetup();

app/code/local/Company/Brands/Model/Mysql4/Setup.php

class Company_Brands_Model_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
{

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:49:02+00:00Added an answer on June 7, 2026 at 10:49 am

    Thanks for everyone’s suggestions.

    , was missing after 'select'

    $data = array(
        'label' => 'Brands',
        'type' => 'select'
        'input' => 'text',
    

    It should be

    $data = array(
            'label' => 'Brands',
            'type' => 'select',
            'input' => 'text',
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Magento 1.4.2 Having compilation errors and the page doesn't render. I get errors but
After upgrading to Magento 1.6.2.0 (from 1.4) the product_option field in table sales_flat_order_item doesn’t
I have a problem with Magento. My admin part doesn't work because here is
I enabled Money Order / Checks in my magento 1.3.2.3 but it doesn't show
I thought Magento came with this feature out of the box but it doesn't
We have a Magento store setup and under version control, we'd like to setup
I'm making Magento event observer, but Magento site doesn't have very good documentation how
I made my module in Magento, but it needs additional attribute assigned to all
I want create new table out of magento, in interface, without inheriting setup class.
Magento 1.7 has added a Cookie Restriction Mode which when activated adds a block

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.