wiki.techinc.nl/maintenance/archives/patch-recentchanges-rc_id.sql
Amir Sarabadani da74e2139a Make rc_id unsigned
On very heavily edited wikis, it is possible for the value of signed
int to be too small. This increases the max value of rc_id from
2,147,483,647 to 4,294,967,295. It also makes it more consistent with
AUTO_INCREMENT PRIMARY KEY columns on other tables.

This patch doesn't apply to Sqlite or Postgres.

Bug: T62962
Change-Id: I3e2c1cf20004dcdeaf195611f762a8f6ffd2bff2
2021-03-01 16:57:41 +00:00

6 lines
No EOL
349 B
SQL

-- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: maintenance/abstractSchemaChanges/patch-recentchanges-rc_id.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE /*_*/recentchanges
CHANGE rc_id rc_id INT UNSIGNED AUTO_INCREMENT NOT NULL;