To add a sql patch in Simple Invoices follow the steps below:
Write the sql for this patch in a way that wont mess with anyone data
Once you've got the sql for the patch written open up the file include/sql_patches.php and copy the format of the other sql patches to create
$sql_patch_name_ is the name of the patch
$sql_patch_8 is the actual sql for the patch
$sql_patch_update_ is the sql to insert a row into the sql patchmanger table to say that the patch has been applied
ie. $sql_patch_update_8 = “INSERT INTO si_sql_patchmanager ( sql_id ,sql_patch_ref , sql_patch , sql_release , sql_statement ) VALUES (,8,'$sql_patch_name_8',20060526,)”;
file::/include/sql_patches.php
file::/database_sqlpatches.php