summaryrefslogtreecommitdiff
path: root/www/wiki/maintenance/archives/patch-rev_text_id-default.sql
blob: dc6e4c6675836b5a1f58880918327d9901ad30ab (plain)
1
2
3
4
5
6
7
8
9
10
--
-- Adds a default value to the rev_text_id field in the revision table.
-- This is to allow the Multi Content Revisions migration to happen where
-- rows will have to be added to the revision table with no rev_text_id.
--
-- 2018-03-12
--

ALTER TABLE /*$wgDBprefix*/revision
  ALTER COLUMN rev_text_id SET DEFAULT 0;