1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00
mediawiki_ynh/sources/mediawiki/maintenance/archives/patch-rev_text_id.sql

17 lines
488 B
SQL

--
-- Adds rev_text_id field to revision table.
-- This is a key to text.old_id, so that revisions can be stored
-- for non-save operations without duplicating text, and so that
-- a back-end storage system can provide its own numbering system
-- if necessary.
--
-- rev.rev_id and text.old_id are no longer assumed to be the same.
--
-- 2005-03-28
--
ALTER TABLE /*$wgDBprefix*/revision
ADD rev_text_id int unsigned NOT NULL;
UPDATE /*$wgDBprefix*/revision
SET rev_text_id=rev_id;