Error upgrading to 1.8.0 from 1.7.6

Trying to upgrade on Windows using MS SQL database. Here is a portion of the log.

2019/04/23 09:18:01 [I] Log Mode: File(Info)
2019/04/23 09:18:01 [I] XORM Log Mode: File(Info)
2019/04/23 09:18:01 [I] Cache Service Enabled
2019/04/23 09:18:01 [I] Session Service Enabled
2019/04/23 09:18:01 [I] Mail Service Enabled
2019/04/23 09:18:01 [I] Register Mail Service Enabled
2019/04/23 09:18:01 [I] Notify Mail Service Enabled
2019/04/23 09:25:55 [I] Log Mode: File(Info)
2019/04/23 09:25:55 [I] XORM Log Mode: File(Info)
2019/04/23 09:25:55 [I] Cache Service Enabled
2019/04/23 09:25:55 [I] Session Service Enabled
2019/04/23 09:25:55 [I] Mail Service Enabled
2019/04/23 09:25:55 [I] Register Mail Service Enabled
2019/04/23 09:25:55 [I] Notify Mail Service Enabled
2019/04/23 09:25:55 [I] Beginning ORM engine initialization.
2019/04/23 09:25:55 [I] ORM engine initialization attempt #1/10...
2019/04/23 09:25:55 [I] Migration: add theme to users
2019/04/23 09:25:56 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:25:56 [I] Backing off for 3 seconds
2019/04/23 09:25:59 [I] ORM engine initialization attempt #2/10...
2019/04/23 09:25:59 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:25:59 [I] Backing off for 3 seconds
2019/04/23 09:26:02 [I] ORM engine initialization attempt #3/10...
2019/04/23 09:26:02 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:02 [I] Backing off for 3 seconds
2019/04/23 09:26:05 [I] ORM engine initialization attempt #4/10...
2019/04/23 09:26:05 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:05 [I] Backing off for 3 seconds
2019/04/23 09:26:08 [I] ORM engine initialization attempt #5/10...
2019/04/23 09:26:08 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:08 [I] Backing off for 3 seconds
2019/04/23 09:26:11 [I] ORM engine initialization attempt #6/10...
2019/04/23 09:26:11 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:11 [I] Backing off for 3 seconds
2019/04/23 09:26:14 [I] ORM engine initialization attempt #7/10...
2019/04/23 09:26:15 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:15 [I] Backing off for 3 seconds
2019/04/23 09:26:18 [I] ORM engine initialization attempt #8/10...
2019/04/23 09:26:18 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:18 [I] Backing off for 3 seconds
2019/04/23 09:26:21 [I] ORM engine initialization attempt #9/10...
2019/04/23 09:26:21 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:21 [I] Backing off for 3 seconds
2019/04/23 09:26:24 [I] ORM engine initialization attempt #10/10...
2019/04/23 09:26:24 [I] Migration: rename repo is_bare to repo is_empty
2019/04/23 09:26:24 [...itea/routers/init.go:82 GlobalInit()] [E] ORM engine initialization failed: migrate: do migrate: Drop index failed: mssql: Incorrect syntax near the keyword 'IF'.

Then it just repeats that every minute. But that is perhaps just because I had the service set to restart after a minute on failure.

Thanks.

This has been posted on github