Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I can't say that I fully understood what you did, but I think I got the explanation: removed 1+ columns that were part of the index. The index will be updated to not include that column. If...
Answer
#1: Initial revision
I can't say that I fully understood what you did, but I think I got the explanation: - removed 1+ columns that were part of the index. [The index will be updated to not include that column](https://dev.mysql.com/doc/refman/8.0/en/alter-table.html). Uniqueness might be lost since uniqueness was ensured by the initial combination of columns: > If columns are dropped from a table, the columns are also removed from any index of which they are apart. If all columns that make up an index are dropped, the index is dropped as well. - [all secondary indexes include the PK columns](https://dev.mysql.com/doc/refman/8.0/en/innodb-index-types.html#:~:text=All%20indexes%20other%20than%20the,specified%20for%20the%20secondary%20index.). Not really sure, but dropping all the non-PK columns from the indexes you can get to your strange situation when the indexes are basically the same as the PK.