[Vtigercrm-developers] Manifest Migration syntax

Uma S uma.s at vtiger.com
Tue Jan 6 13:44:42 GMT 2015


Hi Alan,

Wish you a Happy New Year :)

To apply migration changes for all older version, maintaining latest
version number for version attribute in migration tag is good.

For example : We need to apply migration changes of version 1.2 and 1.3
where module is getting updated to 1.4. So maintaining version as 1.4 will
apply changes for all version less than 1.4.

On Tue, Jan 6, 2015 at 3:30 PM, Alan Lord <alanslists at gmail.com> wrote:

> Hi all and a Happy New Year.
>
> I want to update a module in the Marketplace where I need to change the
> database schema a little.
>
> In the Manifest there is the possible syntax:
>
>  <migrations>
>>   <migration version='1.x'>
>>     <tables>
>>       <table>
>>         <name>table_name</name>
>>           <sql><![CDATA[ALTER TABLE blah blah blah...]]></sql>
>>       </table>
>>     </tables>
>>   </migration>
>> </migrations>
>>
>
> My question is regarding the version number... If I want to apply this
> migration to all previous versions of the module do I need to repeat the
> <migration> block for each version or is there a way to specify a "less
> than" kind of thing?
>
> Thanks
>
> Al
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150106/fd85ee33/attachment.html>


More information about the vtigercrm-developers mailing list