<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ciao Ruben i do mostly the same as Alan, but i run those scripts from the browser.<div class=""><br class=""><div class=""><br class=""><div class=""><br class=""><div class="">
<span><img apple-inline="yes" id="46C4FD1A-5B17-449D-BEDC-D941B06973E6" src="cid:4E7D46EF-3C7B-4822-86E9-35A94FFC98B3" class=""></span><meta charset="UTF-8" class=""><strong style="caret-color: rgb(0, 0, 0); color: rgb(111, 119, 125); font-family: Verdana, Geneva, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">Dott. Angelo Paglialonga</strong><br style="caret-color: rgb(0, 0, 0); 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">Consulenza vTiger CRM ad alto ROI.</span><br style="caret-color: rgb(0, 0, 0); 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">Telefono: 338.6077866</span><br style="caret-color: rgb(0, 0, 0); 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">Sito web</span><strong style="caret-color: rgb(0, 0, 0); color: rgb(111, 119, 125); font-family: Verdana, Geneva, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">: </strong><a href="https://treeway.it/angelo//shorturl.php?id=6457a0339d9398.33634588" style="caret-color: rgb(0, 0, 0); font-family: Verdana, Geneva, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: rgb(3, 201, 169);" class="">angelopaglialonga.com</a>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Il giorno 3 ott 2024, alle ore 13:03, Alan Lord <<a href="mailto:alanslists@gmail.com" class="">alanslists@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 03/10/2024 11:27, Rubén A. Estrada Orozco wrote:<br class=""><blockquote type="cite" class="">Angelo and Alan,<br class="">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 class=""></blockquote><br class="">You are probably right Ruben, but to be honest with you I rarely (if ever) use the web-based migration now.<br class=""><br class="">My scripts are now very far from standard (see how many issues from me on <a href="http://code.vtiger.com" class="">code.vtiger.com</a> relate to migration scripts) but the basic modification is pretty straightforward.<br class=""><br class="">As an example look at the first one:<br class=""><br class=""><a href="https://code.vtiger.com/vtiger/vtigercrm/-/blob/master/modules/Migration/schema/540_to_600RC.php" class="">https://code.vtiger.com/vtiger/vtigercrm/-/blob/master/modules/Migration/schema/540_to_600RC.php</a><br class=""><br class="">Before the if(!defined('VTIGER_UPGRADE') test I add:<br class=""><br class=""><blockquote type="cite" class="">const VTIGER_UPGRADE = true;<br class="">$Vtiger_Utils_Log = true;<br class="">require_once('include/logging.php');<br class="">require_once('config.php');<br class="">require_once('include/utils/CommonUtils.php');<br class="">require_once('includes/main/WebUI.php');<br class="">ini_set('memory_limit', '-1');<br class="">// Let's see some errors<br class="">ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING); // I can change this going forward :-)<br class="">ini_set('display_startup_errors', 1);<br class="">ini_set('display_errors', 1);<br class=""></blockquote><br class="">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 class=""><br class="">I save these files as, for example, 540_to_600RC-cli.php<br class=""><br class="">I also set the pear db to die on error.<br class=""><br class="">You can't really read the output very easily as it contains html markup but you get the idea...<br class=""><br class="">I usually run them as the web server user from the vtiger root directory, e.g.:<br class=""><br class="">sudo su - www-data -s /bin/bash<br class=""><br class="">(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 class=""><br class="">You can also write a shell script to iterate over each file based on the current version.<br class=""><br class="">You can also log the output (2&<1) into files from each version update so you can review at your leisure.<br class=""><br class="">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 class=""><br class="">HTH<br class=""><br class="">Al<br class=""><br class=""><br class="">_______________________________________________<br class="">http://www.vtiger.com/</div></div></blockquote></div><br class=""></div></div></div></body></html>