Script level upgrade for database '%1!s!' failed because upgrade step '%2!s!' encountered error %3!s!, state %4!s!, severity ...

Script level upgrade for database '%1!s!' failed because upgrade step '%2!s!' encountered error %3!s!, state %4!s!, severity %5!s!. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.