setup_version

The setup_version attribute in the module.xml file specifies the version number of your module. This version number is used to track the current version of your module’s database schema and data.

setup_version="1.0.1". This means that the current version of your module is 1.0.1.

When you make changes to your module’s database schema, such as adding a new field or table, you need to update the setup_version in your module.xml and create an upgrade script to apply the changes. For example, if you want to update your module to version 1.0.2 with a new feature or database change, you would update your module.xml like this:

xmlCopy code<module name="Vendor_Module" setup_version="1.0.2">
    <!-- ... other module configuration ... -->
</module>

Then, you would create a new upgrade script in your module’s Setup directory to apply the necessary changes for version 1.0.2.

Remember that whenever you make changes to your module’s database schema or data, you should also increment the setup_version accordingly and provide upgrade scripts as needed to ensure that the changes are properly applied to existing installations.

Leave a comment

Your email address will not be published. Required fields are marked *