Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1.

Export db code using custom script that saves files in php extension not in txt
php
/var/www/u.toldot/code_root/toldot_lib/DBcodeMigrate/tyDBcodeTransfer.export.php

2. Export is saved in:


/var/www/u.toldot/db_code/exportedDBcodeMigration/

3. Using php code upgrader based on rector https://getrector.com/documentation

cd /var/www/u.toldot/pub/test/upgrade

4. changing root folder of the code to process in rector.php

this line:

$rectorConfig->paths([
'/var/www/u.toldot/db_code/exportedDBcodeMigration/',
]);

5. Run to see what changes will be made to code from db:


vendor/bin/rector process --dry-run

6. Make backup of database:

php /var/www/u.toldot/code_root/toldot_lib/DBcodeMigrate/tyDBcodeTransfer.php yes

7. Run to make changes in files


vendor/bin/rector process

8. Run to save changes back to db

php
/var/www/u.toldot/code_root/toldot_lib/DBcodeMigrate/tyDBcodeTransfer.import.php

______________________________________________

Changed files: /var/www/u.toldot/pub/netcat/nc_lenta.class 2.php


/var/www/u.toldot/pub/netcat/full.php

You might also like