After renaming fields, which files should be re-uploaded and removed?

PHPMaker v2026.

It is really important to know which files should be re-uploaded to production server and which files should be removed from the cache section of production server, especially if you only rename field(s), in order to speed up the deployment process.

Instead of re-uploading ALL the generated files just like for the very first time, it’s better only upload/remove the related modified files, moreover if you have so many tables.

Re-upload files:

  1. PHP files related to the table in controllers folder,
  2. PHP files related to the table in models folder,
  3. PHP files related to the table in views folder,
  4. XML files in lang folder,

Remove files/folders:

  1. PHP files in translations folder,
  2. All files and folders under var/cache/prod(for production server) or var/cache/dev (for development server),

Also read Deploying to Linux When Developing on Windows.

I think we also need to copy the files from \src\Db\Entity\ if we renamed our field(s)? If only logic changes in the server events, I usually only copy models and views, and lang (if there are changes in captions)

1 Like