When upgrading from 3.65, the DB table 'billing matrix' column is indeed 'id' and we will rename it to 'tag', this is ok but what if the first pass of the setup schema fialed and you click "Recheck installation"?

On the second pass the column 'tag' does not exist anymore (we renamed it in the first pass) so the install script fails again ...

What I suggest here is to make some additional checks (like "SHOW COLUMNS FROM ...) and check if the column exists before trying to rename it.

A MySQL error occurred: [1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Support Email'' at line 2
You may have found a bug, if you think this is the case please report it.
Raw SQL: -- PH 2012-02-07 UPDATE `emailtemplates` SET subjectfield = '{incidentid} - {incidenttitle} WHERE name = 'Support Email'

A MySQL error occurred: [1054] Unknown column 'subject' in 'field list'
You may have found a bug, if you think this is the case please report it.
Raw SQL: UPDATE `emailtemplates` SET subject = '{incidentid} - {incidenttitle} - Closed' WHERE name = 'EMAIL_INCIDENT_CLOSED_CONTACT'

A MySQL error occurred: [1054] Unknown column 'subject' in 'field list'
You may have found a bug, if you think this is the case please report it.
Raw SQL: UPDATE `emailtemplates` SET subject = '{incidentid} - {incidenttitle} - Closed' WHERE name = 'EMAIL_INCIDENT_CLOSED_USER'

A MySQL error occurred: [1054] Unknown column 'subject' in 'field list'
You may have found a bug, if you think this is the case please report it.
Raw SQL: UPDATE `emailtemplates` SET subject = 'Service Request #{incidentexternalid} - {incidenttitle} CLOSED - {incidentid}' WHERE name = 'EMAIL_EXTERNAL_INCIDENT_CLOSURE'

A MySQL error occurred: [1054] Unknown column 'subject' in 'field list'
You may have found a bug, if you think this is the case please report it.
Raw SQL: UPDATE `emailtemplates` SET subject = '{applicationshortname} {incidentid} - {incidenttitle} updated', body = 'Hi {contactfirstname}, Your incident {incidentid} - {incidentid} has been updated, please log into the portal to view the update and respond. DO NOT respond to this e-mail directly, use the portal for your responses. Log into the portal at: {applicationurl}, where you can also reset your details if you do not know them. Regards, {signature} {globalsignature}' WHERE name = 'EMAIL_INCIDENT_UPDATED_CUSTOMER'

A MySQL error occurred: [1054] Unknown column 'subject' in 'field list'
You may have found a bug, if you think this is the case please report it.
Raw SQL: UPDATE `emailtemplates` SET subject = '{applicationshortname} {incidentid} - {incidenttitle}: feedback requested' WHERE name = 'EMAIL_SEND_FEEDBACK'