Make renaming columns with PHP DB API idempotent (#4367)
authorMatthias Schmidt <gravatronics@live.com>
Mon, 5 Jul 2021 09:15:20 +0000 (11:15 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 19 Jul 2021 09:41:45 +0000 (11:41 +0200)
commitb20bf91f67a11d2755dfcaa15d9de50b82f827a1
treeedfdb143d83d2506c8c5f60a0dac08755bfabb99
parent5d7ce92aa531a913e744a4ab754ae6ec14b522f3
Make renaming columns with PHP DB API idempotent (#4367)

An error message should only be shown if the neither a column with the old name, nor with the name name exists so that after the rename, a second rename is a no-op.

Close #4362
See #3765

(cherry picked from commit 1a029332791f3e3cdca054d8f139857b5ef78791)
wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php