Merge "Disable transaction warnings for automatic trx."
[mediawiki.git] / maintenance / archives / patch-rev_text_id.sql
blob3dd9127d6c478d777f4fa88d10c115a82041db50
1 --
2 -- Adds rev_text_id field to revision table.
3 -- This is a key to text.old_id, so that revisions can be stored
4 -- for non-save operations without duplicating text, and so that
5 -- a back-end storage system can provide its own numbering system
6 -- if necessary.
7 --
8 -- rev.rev_id and text.old_id are no longer assumed to be the same.
9 --
10 -- 2005-03-28
13 ALTER TABLE /*$wgDBprefix*/revision
14   ADD rev_text_id int unsigned NOT NULL;
16 UPDATE /*$wgDBprefix*/revision
17   SET rev_text_id=rev_id;