Difference between revisions of "Patch Mechanism"

From OpenEMR Project Wiki
Line 1: Line 1:
Note this page is for developers to describe the patch process. For actual Patches, go to the [[OpenEMR Patches]] wiki page.
Note this page is for developers to describe the patch process. For actual Patches, go to the [[OpenEMR Patches]] wiki page.


==Patch Mechanism==
This is currently rather simple and involves a step to update the codebase and a step to update the database.


This is currently rather simple.
===Codebase===
 
==Codebase==
All new code is carried over to a release branch (ie. rel-410) and all files that have been modified are intermittently packaged in a zip file. So, can upgrade code by patching from the rel-410 branch or by patching from the packaged zip file.
All new code is carried over to a release branch (ie. rel-410) and all files that have been modified are intermittently packaged in a zip file. So, can upgrade code by patching from the rel-410 branch or by patching from the packaged zip file.


==Database==
===Database===


The sql_patch.php script will upgrade database, globals, and the version (from version.php script). It loads the database changes from the sql/patch.sql file.
The sql_patch.php script will upgrade database, globals, and the version (from version.php script). It loads the database changes from the sql/patch.sql file.

Revision as of 02:41, 15 October 2011

Note this page is for developers to describe the patch process. For actual Patches, go to the OpenEMR Patches wiki page.

Patch Mechanism

This is currently rather simple and involves a step to update the codebase and a step to update the database.

Codebase

All new code is carried over to a release branch (ie. rel-410) and all files that have been modified are intermittently packaged in a zip file. So, can upgrade code by patching from the rel-410 branch or by patching from the packaged zip file.

Database

The sql_patch.php script will upgrade database, globals, and the version (from version.php script). It loads the database changes from the sql/patch.sql file.