Steps to replicate the issue (include links if applicable):
- Follow normal upgrade procedure.
- php maintenance/run.php update
What happens?:
- Error message.
- Modifying primary key on table categorylinks...Wikimedia\Rdbms\DBQueryError from line 1225 of ...w/includes/libs/rdbms/database/Database.php: Error 1091: Can't DROP 'primary'; check that column/key exists Function: Wikimedia\Rdbms\Database::sourceFile( ...w/sql/mysql/patch-categorylinks-pk.sql ) Query: DROP INDEX primary ON `categorylinks
What should have happened instead?:
- No error, finish update.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
- 1.44.2 to 1.45.1
Other information (browser name/version, screenshots, etc.):