/
Install or Uninstall scripts

Install or Uninstall scripts

There are 2 types of install or removal scripts that can be used. SQL and PHP.
SQL needs to have SQL commands that will be executed on extension install or uninstall respectively.
PHP can have code that will be executed during extension install and removal process. PHP files can include all the methods and classes available in the AbanteCart.

Be very careful with updating database and altering tables. Please account for data integrity. If update existing table, account for speed of SQL execution in case of large data in the tables you effect. If uninstall, be careful with data removal. Do not delete altered fields and drop tables that are not created by given extension.


Consider validation for data if you do multiple SQL insert or updates that depends on each other.


Related content

Files and directory structure
Files and directory structure
More like this
Install Extension
Install Extension
More like this
Extension concept in AbanteCart
Extension concept in AbanteCart
More like this
List Extensions
List Extensions
More like this
Package extension for distribution
Package extension for distribution
More like this
Database extension
Database extension
More like this