<div dir="ltr">Thank you guys for sharing your knowledge.<div><br></div><div>Alan, any chance you might share your modified scripts?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 3, 2024 at 7:19 AM Angelo Paglialonga <<a href="mailto:info@angelopaglialonga.com">info@angelopaglialonga.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Ciao Ruben i do mostly the same as Alan, but i run those scripts from the browser.<div><br><div><br><div><br><div>
<span><img id="m_-389943602054800032946C4FD1A-5B17-449D-BEDC-D941B06973E6" src="cid:ii_1925683d8d35984fdf91"></span><strong style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br><br>Dott. Angelo Paglialonga</strong><br style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Consulenza vTiger CRM ad alto ROI.</span><br style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Telefono: 338.6077866</span><br style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Sito web</span><strong style="color:rgb(111,119,125);font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">: </strong><a href="https://treeway.it/angelo//shorturl.php?id=6457a0339d9398.33634588" style="font-family:Verdana,Geneva,sans-serif;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(3,201,169)" target="_blank">angelopaglialonga.com</a>
</div>
<div><br><blockquote type="cite"><div>Il giorno 3 ott 2024, alle ore 13:03, Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> ha scritto:</div><br><div><div>On 03/10/2024 11:27, Rubén A. Estrada Orozco wrote:<br><blockquote type="cite">Angelo and Alan,<br>Could you please comment on my last email. Please let me insist. I would like to know if you agree with my observations and how you run the db migration from command line.<br></blockquote><br>You are probably right Ruben, but to be honest with you I rarely (if ever) use the web-based migration now.<br><br>My scripts are now very far from standard (see how many issues from me on <a href="http://code.vtiger.com" target="_blank">code.vtiger.com</a> relate to migration scripts) but the basic modification is pretty straightforward.<br><br>As an example look at the first one:<br><br><a href="https://code.vtiger.com/vtiger/vtigercrm/-/blob/master/modules/Migration/schema/540_to_600RC.php" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/-/blob/master/modules/Migration/schema/540_to_600RC.php</a><br><br>Before the if(!defined('VTIGER_UPGRADE') test I add:<br><br><blockquote type="cite">const VTIGER_UPGRADE = true;<br>$Vtiger_Utils_Log = true;<br>require_once('include/logging.php');<br>require_once('config.php');<br>require_once('include/utils/CommonUtils.php');<br>require_once('includes/main/WebUI.php');<br>ini_set('memory_limit', '-1');<br>// Let's see some errors<br>ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING); // I can change this going forward :-)<br>ini_set('display_startup_errors', 1);<br>ini_set('display_errors', 1);<br></blockquote><br>This sets the VTIGER_UPRADE constant to true and includes some files (especially the WebUI.PHP) that enable you to use the command line.<br><br>I save these files as, for example, 540_to_600RC-cli.php<br><br>I also set the pear db to die on error.<br><br>You can't really read the output very easily as it contains html markup but you get the idea...<br><br>I usually run them as the web server user from the vtiger root directory, e.g.:<br><br>sudo su - www-data -s /bin/bash<br><br>(ubuntu server user www-data has no shell by default) You can run them as root and then just chown everything back to the web user afterwards if its easier.<br><br>You can also write a shell script to iterate over each file based on the current version.<br><br>You can also log the output (2&<1) into files from each version update so you can review at your leisure.<br><br>You will need to hack a few of them as I recall as some things didn't work quite right initially - my commit log for my modified scripts start in Sept 2015 ;-)<br><br>HTH<br><br>Al<br><br><br>_______________________________________________<br><a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></div></div></blockquote></div><br></div></div></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>