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-archive-text_id.sql

14 lines
502 B
SQL

-- New field in archive table to preserve text source IDs across undeletion.
--
-- Older entries containing NULL in this field will contain text in the
-- ar_text and ar_flags fields, and will cause the (re)creation of a new
-- text record upon undeletion.
--
-- Newer ones will reference a text.old_id with this field, and the existing
-- entries will be used as-is; only a revision record need be created.
--
-- Added 2005-05-01
ALTER TABLE /*$wgDBprefix*/archive
ADD
ar_text_id int unsigned;