S
S
Steve2021-12-16 11:32:15
symfony
Steve, 2021-12-16 11:32:15

Why can't I migrate where the .. line is?

Can you please tell me why I can't migrate where there is a line:
CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL
There is an error

General error: 1833 Cannot change column 'id': used in a foreign key constraint 'FK_92C4739C69F4B775' of table 'aggr.provider'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2021-12-16
@CenterJoin

It's all written in error. The foreign key is used. If you want to manipulate this column, you need to remove the FK, and then add it again if you need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question