Got it to fully work!
I had to open the upgrade patch and change upgrade_utils.php to not stop after a failed query by changing true to false:
PHP Code:
$query_result = $db->query($query.';', false, "An error has occured while performing db query. See log file for details. query: $query<br>");
I also had to change the 451_to_500_mssql.sql script by remove all comments and blank lines and adding this if exists clause before any drop column to make sure that the column exists before dropping it:
if exists ( select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='[documents]' and COLUMN_NAME='[mail_merge_document]' )
ALTER TABLE [documents] DROP COLUMN [mail_merge_document];
After I run the upgrade I just check the logs to see what queries failed and deal with it at that time. Now it upgrades and we can move on.
Bookmarks