Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [data-script]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
335 views

Install and data-install script with different versions?

I have a custom module with several install and upgrade scripts under the sql directory, that create and alter my sql table. When Magento runs the scripts it updates both version and data_version ...
ella_beeriPrint's user avatar
7 votes
1 answer
10k views

When schema_version & data version will be different?

For example i don't have setup scripts in My module,can i ignore setup_version tag in module.xml file. In m1 automatically modules installed,now it's first throwing an error(if we don't run setup ...
sivakumar's user avatar
  • 287
23 votes
2 answers
5k views

Which runs first, install-upgrade script or data-upgrade script?

I'm upgrading a module to version lets say 0.1.3. Say I have these files: data/mymodule_setup/data-upgrade-0.1.2-0.1.3.php sql/mymodule_setup/upgrade-0.1.2-0.1.3.php Will the sql upgrade script run ...
Vic's user avatar
  • 1,424
4 votes
2 answers
3k views

adding a product by upgrade script

I'm trying to add a product using an upgrade script inside my module, but I have this error: Fatal error: Call to a member function getStoreIds() on a non-object Here is my code: $installer = $this;...
apedic's user avatar
  • 923