<div dir="ltr">Hi Ruben,<br><div><br></div><div>Sorry! I could not able to reproduce this issue, while migrating from 7.1.0 to 7.2.0, Please do check this <a href="https://sc.vtiger.in/screenshots/uma-sc-at-14-11-2019-18-31-43.png">Screen-sScreen-shothot</a>.</div><div><br></div><div>Can you please verify what is the current version of your source during migration? from vtiger_version table and vtigerversion.php file? </div><div><br></div><div>Only with respect to this current version, it executes the migration file. I expect something is going wrong there.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 14, 2019 at 9:28 AM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com">rulotec1@gmail.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 dir="ltr">Thanks for the tips! I'll try them out in my next migration. Running the migration scripts from cli sounds attractive. <div><br></div><div>I hope Uma, ore somebody from VT can comment on why the 701 -> 710 schema script is run on the 7.1.0 to 7.2.0 migration.<div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 13, 2019 at 1:37 PM Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.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">On 13/11/2019 19:06, Rubén A. Estrada Orozco wrote:<br>
> Thanks for the input Alan! It's very helpful.<br>
<br>
> 1. How do you turn on the logs in the case of migrations? I have tried <br>
> enabling it by setting 'LOG4PHP_DEBUG' => true in config.performance.php <br>
> without luck :( It has been very frustrating that migration scripts just <br>
> silently fail and I can't get fatal errors to display.<br>
<br>
You also need to edit the log4php.properties file to enable debug <br>
logging; change where it says "FATAL" to "DEBUG".<br>
<br>
> 2. How do you run the migration scripts by the command line? I assume <br>
> running for example php -f 701_to_710.php wouldn't work because of <br>
> dependencies in the script.<br>
<br>
It's probably not something I would recommend unless you know what you <br>
are doing or have lots of time to play, test & fail ;-) It's a thing <br>
I've been working on (on and off) since 2015 according to my git commit <br>
history ;-)<br>
<br>
Anyway - basically you need to do this:<br>
<br>
Depending on the process (New Installation, or a Migration) you need to <br>
set the VTIGER_UPGRADE and/or INSTALLATION_MODE constants. You need <br>
include a few files at the top such as the config.php and the WebbUI.php <br>
so the class loader works. Then it is helpful, but not essential, to <br>
edit the scripts so the output is readable on the cli as most of it is <br>
echoed with html tags such as br, p etc... I also turn on php <br>
error_reporting as this can be a lot more helpful than the debug logs.<br>
<br>
You also really have to run the scripts as the web-server user because <br>
they need write access to the vtiger filesystem... I would never <br>
recommend using a super user account. FWIW on linux I create a <br>
.bash_alias entry for this<br>
<br>
alias phpwww='sudo -u www-data php'<br>
<br>
so from the command line I just need to type<br>
<br>
# phpwww file-to-run.php<br>
<br>
Hope that helps<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>