After upgrade from magento 2.1.7 to 2.2.3 and am stuck. I have tried everything.
In Pdo.php line 235:
SQLSTATE[HY000]: General error: 1025 Error on rename of './zwwnzwzjhe/#sql-1bd1_25f9' to './zwwnzwzjhe/customer_group' (errno:
150 – Foreign key constraint is incorrectly formed), query was: ALTER
TABLEcustomer_group
MODIFY COLUMNcustomer_group_id
int(10)
UNSIGNED NOT NULL AUTO_INCREMENTIn Pdo.php line 228: SQLSTATE[HY000]: General error: 1025 Error on rename of './zwwnzwzjhe/#sql-1bd1_25f9' to
'./zwwnzwzjhe/customer_group' (errno: 150 – Foreign key constraint is
incorrectly formed)
I am unable to delete this table or make any changes to this table …please help.
Thank you
Best Answer
To work around this, use either of these solutions. Both present risks of damaging the data integrity.
Option 1:
Option 2: