<div dir="ltr">Alan,<div><br></div><div>Install and Migrator is a unified process and hence the migration scripts are executed.</div>The flag INSTALLATION_MODE is used to distinguish between fresh installation / existing upgrade.<div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8px">Why hasn't, for example, the ModComments module package been updated so that when we install 6.4.0 it creates all the necessary columns?</span></blockquote><div><br></div><div>It is a mistake of packaging after integration - sorry. We will review the inconsistency of manifest. This should not affect the installation - since 540_to_600RC injects the field if not yet already done.</div><div><br></div><div>Thanks for filing - <a href="http://code.vtiger.com/vtiger/vtigercrm/issues/130" target="_blank">http://code.vtiger.com/vtiger/vtigercrm/issues/130</a> - we will reach to it.</div><div><br></div><div>Regards,<br></div><div><div>Prasad</div></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.facebook.com/vtiger" style="color:rgb(0,0,204)" target="_blank">FB</a> I </span><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twit</a> I <a href="https://www.linkedin.com/company/1270573?trk=tyah" style="color:rgb(0,0,204)" target="_blank">LIn</a> I <a href="https://blogs.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Blog</a> I <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Mar 4, 2016 at 4:17 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is totally bonkers...<br>
<br>
When you install a clean version of vtiger, say version 6.4.0, what I discovered recently is that the installation process runs all the migration scripts as well!<br>
<br>
See: <a href="http://code.vtiger.com/vtiger/vtigercrm/issues/86" rel="noreferrer" target="_blank">http://code.vtiger.com/vtiger/vtigercrm/issues/86</a><br>
<br>
Recall that in 540_to_600RC.php there is the bit of code I mentioned before which is losing *critical* information when it migrates old comments from the vtiger_ticketcomments to the standard vtiger_modcomments table...<br>
<br>
Very shortly *after* the above piece of code is a bit which adds the "customer" field (that holds the Contact ID) into the ModComments module!<br>
<br>
In the ModComments Module zipped package file it creates the vtiger_modcomments table with the following SQL<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
CREATE TABLE `vtiger_modcomments` (<br>
`modcommentsid` int(11) DEFAULT NULL,<br>
`commentcontent` text,<br>
`related_to` varchar(100) NOT NULL,<br>
`parent_comments` varchar(100) default NULL<br>
) ENGINE=InnoDB DEFAULT CHARSET=utf8<br>
</blockquote>
<br>
There are three further columns which are being added to this table via the migration script (but only after the data has been copied from tickets and faq records)!<br>
<br>
'customer', 'userid', 'reasontoedit'<br>
<br>
Over the years I have pointed out that there are several very major, and loads of minor, errors in these migration scripts and from what I can tell none of them have been incorporated as yet (please see the archive of this list for more information).<br>
<br>
What has really surprised me recently is that these scripts are being run during a fresh, clean installation too!<br>
<br>
Why?<br>
<br>
Why hasn't, for example, the ModComments module package been updated so that when we install 6.4.0 it creates all the necessary columns?<br>
<br>
It means that none of the standard vtiger modules which are installed on a new system have a particular *version*. Because, in this case, ModComments is updated from the 540_to_600RC.php script after it is installed.<br>
<br>
This seems completely bonkers to me...<br>
<br>
Al<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div></div>