sqlite3.IntegrityError | Upgrading FreeNAS 11.3-U7 to TrueNas Core 12.4-U4

During my upgrade of FreeNAS i encountered a sqlite3.IntegrityError stopping a active database upgrade. I will show you how to fix it and upgrade to TrueNAS. I had tried upgrading FreeNAS a number of times but it all failed, all errors had something to do with the FreeNAS middlewere. Today i wanted to see if …