The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
30 views

Install script version logic: When are which upgrade scripts executed?

I found an interesting behavior today: I accidently named a data upgrade script data-upgrade-0.1.20-0.1.20.php where it should have been data-upgrade-0.1.19-0.1.20.php, and it actually has been ...
0
votes
1answer
31 views

My module setup does not run in Magento

In my module i have an sql script, the module runs but the setup script is not executed. From core_resource table I have nav_setup | 0.1.1 | 0.1.1 but table is not installed? I have created log from ...
2
votes
1answer
173 views

Magento 2 Schema post-updates

After adding a new module to Magento2 I need to enable it using bin/magento module:enable Module_Name then, I need to run the install scripts from the module using bin/magento setup:upgrade ...
4
votes
1answer
93 views

Magento 2 uninstall module

Apparently, now Magento 2 supports uninstall scripts that allow db schema modification when uninstalling a module (horay!!). As explained in here this only works for module installed via composer. (I ...
1
vote
2answers
51 views

What's going on in this install script? [duplicate]

I keep running this script and getting a MySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 ...
0
votes
1answer
42 views

Install script will not execute

My module lives at app/code/local/Mymod/Pinterestimage. etc/config.xml containts: <?xml version="1.0"?> <config> <modules> <Mymod_Pinterestimage> ...
0
votes
1answer
29 views

My Module install script isn't running

I'm fairly sure I'm missing something obvious here, but I can't see it. I've added an install script to a module I've built, I've double checked it against Alan Storm's excellent tutorial, and I'm ...
2
votes
1answer
166 views

How can I programmatically create an api role (SOAP)

I would like to programmatically create an api role with the installation of a module. I have a data install script located at namespace/module/data/namespace_module_setup/data-install-1.0.0.php ...
2
votes
2answers
146 views

Magento2 Module\Updater\Setup error

I'm trying install different modules on my magento2 (v.0.74). But all of them generates the same error: exception 'Magento\Framework\Exception\LocalizedException' with message 'Source class ...
0
votes
1answer
40 views

Magento is not running my install script

I'm trying to make local module to add 1 field to my category admin. I checked 7 times and everyghing looks good. I don't know why but module installer is not starting. I used This Tutorial My file ...
0
votes
2answers
1k views

How to add a new column to existing table in Magento way?

How can I add a new column to existing Magento core table via install script? (with out using pure SQL) I want to use the Magento way which is using alias methods to create install script. so far I ...
0
votes
1answer
38 views

Randomly Getting the Install Magento page [duplicate]

I am currently getting the install magento page once in a while when I make modifications in the admin section. The frontend of the website seems to be working fine. For example - When I try adding a ...
0
votes
1answer
29 views

module to install attribute using setup resource

I tried to create a shopping module with help, when I install the module it should add a custom attribute but for some reason it is not working I have this structure: config.xml is simple and just ...
0
votes
0answers
66 views

SQL Errror after adding a new category attrubte SQLSTATE[42S22]

I've tried adding a new attribute to the Magento Categories which I can configure from the Admin Panel Category -> Manage Categories. The attribute is called custom_attribute. I created a module ...
0
votes
2answers
95 views

How to add attributes to a custom table?

I would like to add some attributes to a custom table with an install script. But whatever I try it didn't work. $installer = $this; $installer->startSetup(); ...
1
vote
1answer
225 views

how to add stores and views programmatically

can I use install scripts to configure multiple stores and views? Can I find any examples? thanks
0
votes
1answer
67 views

How to create More then one table in magento?

How to create More then one table in magento with installer script ?
1
vote
0answers
239 views

getOptionInstance()->getOptions() returning empty array [closed]

I am trying to delete custom options in a data install script. I have a list of product IDs and I am looping through them like this: foreach ($productIds as $productId) { $product = ...
0
votes
1answer
217 views

Programmatically create site categories using an install script

Using Magento 1.9.0.1 I am trying to script my entire sites config and settings using install scripts so I can keep the whole site under version control. I am now at the point of creating my ...
0
votes
2answers
438 views

how to re-install custom module in local with sql script

i created a module vendor... i also created a sql script.. bt when i remove my module from site.....then whole thing is fine... bt when i re install my module then my sql script is not working..... ...
0
votes
2answers
135 views

Magento sometimes doesn't insert sql tables on install

In some rare cases Magento doesn't add tables on installation, but it creates an entry in core_resource. This produces error Base table or view not found... If I delete core_resource entry it ...
3
votes
3answers
111 views

Upgrade scripts and media resources

I was faced with this issue before and didn't find a "one size fits all" solution. For an easier versioning I usually add content to a website using upgrade and data-upgrade scripts. But I'm faced ...
1
vote
1answer
47 views

Magento patch bug

I just was examining the PATCH_SUPEE-3941_EE_1.14.0.1_v1.sh (download page) which changes downloader/lib/Mage/Connect/Packager.php file and noticed that there is a strange lines: Is this a dev ...
1
vote
1answer
58 views

Installer script runtime

When does the installer scripts run? Is there a function checking for new versions of extensions and installer scripts every time Magento loads? The question is both for the exact time and place of ...
0
votes
1answer
68 views

How can I create an attribute as “not configurable” from an install script?

When I create a dropdown attribute, Magento is always setting the "Use To Create Configurable Product" as Yes. While in the install script I added in the options array to the ...
0
votes
1answer
146 views

Magento - cannot add stored procedure using install script

I have created a stored procedure which do some updates in database. Now when I am trying to add that stored procedure using magento install script from sql folder, It is not being updated.. I cannot ...
1
vote
2answers
201 views

Programatically enable Free Shipping and set minimum order ammount for it

I am writing a custom module, which deals with order creation, for multiple stores with free-shipping disabled. What should I call in my install scripts or add to my config.xml in order to enable ...
1
vote
3answers
627 views

What is the best way of creating a new table in Magento?

I have seen two different ways of creating a new table in Magento. I want to figure out which one is the best? And why there are two ways? What are the differences between them? First way ...
0
votes
1answer
69 views

Adding category attribute (select) via installer. Set defaut not working but get additional empty value

I'm trying to add a custom attribute to the category page. It will already show up but I only want to have the values Yes/No in it. Unfortunately there is always an empty, preselected value. So ...
2
votes
2answers
325 views

How installer script extends `Mage_Core_Model_Resource_Setup`?

Lot of time, I heard that installer script, upgrade script, and data script files are extending Mage_Core_Model_Resource_Setup (default case). When we make a look on any of these file, there is no ...
9
votes
3answers
1k views

Current store is 1 when running upgrade scripts

Any idea why Mage::app()->getStore() returns the store view with id 1 when inside the upgrade scripts independent on the store view I'm running the upgrade script in (even admin)? I mean, I know ...
1
vote
1answer
306 views

Create product via install script

I'm attempting to create a new product via an install script, but running into some issues, more specifically when trying to save the product. The error I'm getting is: Call to a member function ...
9
votes
5answers
812 views

Use of $installer v $this in install scripts

Ok, using install scripts there seems to be a weird convention to use the following: $installer = $this; I really don't understand this as it is completely redundant. Why not just use $this-> ...