MySQL requires auto columns to be the primary key
authorAlexander Ebert <ebert@woltlab.com>
Mon, 9 Dec 2019 00:00:23 +0000 (01:00 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 9 Dec 2019 00:00:23 +0000 (01:00 +0100)
commit36357b9c72bb306e097230005f900d65069ac4d6
treec0c9f8f60ceacbd6ebcf381e063300be0f6fe264
parentc84fa46bb15b24261794e7378a8a5148b06223d6
MySQL requires auto columns to be the primary key

Adding an auto column to an existing table wasn't possible, because the primary key would be added in a secondary step.

However, MySQL does not permit this to be split into two steps, requiring us to define the key when adding the column.
com.woltlab.wcf/files_pre.tar
wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php
wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php