Error There is no active transaction

Hi,
Tried to update Pimcore 5.7.1 to 5.8.1 and I get the following error:

Migration 20181128074035 failed during Post-Checks. Error There is no active transaction
In Connection.php line 1347:

There is no active transaction

Any help please!

BR
M. Ali

had it as well, what happens if you run it again?

bin/console pimcore:migrations:migrate -s pimcore_core

I get this error:

An exception occurred while executing ‘ALTER TABLE quantityvalue_units
CHANGE id id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
CHANGE baseunit baseunit INT(11) UNSIGNED DEFAULT NULL,
ADD converter VARCHAR(255) DEFAULT NULL,
ADD CONSTRAINT fk_baseunit
FOREIGN KEY (baseunit)
REFERENCES quantityvalue_units (id)
ON DELETE SET NULL
ON UPDATE CASCADE’:

SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint

Solved the problem by running manually:

ALTER TABLE quantityvalue_units
CHANGE id id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
CHANGE baseunit baseunit INT(11) UNSIGNED DEFAULT NULL;

And then:

bin/console pimcore:migrations:migrate -s pimcore_core -n