Fix check whether a non-owned index is being dropped in DatabaseTableChangeProcessor
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 19 Aug 2021 14:43:57 +0000 (16:43 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 19 Aug 2021 14:43:57 +0000 (16:43 +0200)
commit1166e76df0bff3879a708caef8619d38370aec7a
tree7d126613024837dc2f6d6391f138f697beb4f0ab
parentc3ebf8b995927b826072cfcc72d08a9ebd93f878
Fix check whether a non-owned index is being dropped in DatabaseTableChangeProcessor

The reproducer and fix is effectively identical to the one in
d7f721d6f920d66f75102723b504d89e57a8c9ff.

Package A: Installs KEY someIndex (`UNIQUE`)
Package B: Installs UNIQUE KEY someIndex2 (`UNIQUE`)
Package B: Drops UNIQUE KEY someIndex2 (`UNIQUE`)

It was erroneously detected that Package B would drop the index owned by
Package A. The actual dropping logic was already correct, just the safety check
was incorrect.
wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php