update language definition upon extension upgrade

Started by yonghan, September 26, 2015, 03:21:15 AM

Previous topic - Next topic

yonghan

Hi admins, I'm trying to update language definition during extension upgrade process. I have put the update query in install.sql or install.php but it doesn't works. Are there additional code that I need to run in order to get the language definition changed? Thanks.

eCommerce Core

If you insert into database, do not forget to clear the cache for languages:

      $this->cache->delete('language_definitions');


yonghan


yonghan

It's not working eCommerce Core. It's not working. Is it correct to place the language definition update query in install.php for extension upgrade purpose? Thanks

abantecart

For upgrade of extension you do not use install.php.

You need to provide upgrade XML property in extension config.xml file.
It is very similar to install property
It should be like this:

<upgrade>
    <sql>[file name].sql</sql>
    <trigger>[filen ame].php</trigger>
</upgrade>


We will add this to the manual soon

yonghan


Forum Rules Code of conduct
AbanteCart.com 2010 -