X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=blobdiff_plain;f=maintenance%2Ftables.sql;h=4120a64d5dd16af46097be4294d0c05bbec5559e;hb=b0bdfd7e9f7fab3fb2eae37da5d953d03362c15f;hp=d633a9c2092ca29c3c57813004d360868f3ba29c;hpb=ec108ea14beef26f08987071084f485f2c30c495;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/tables.sql b/maintenance/tables.sql index d633a9c209..4120a64d5d 100644 --- a/maintenance/tables.sql +++ b/maintenance/tables.sql @@ -676,14 +676,15 @@ CREATE TABLE /*_*/slots ( -- reference to content_id slot_content_id bigint unsigned NOT NULL, - -- whether the content is inherited (1) or new in this revision (0) - slot_inherited tinyint unsigned NOT NULL DEFAULT 0, + -- The revision ID of the revision that originated the slot's content. + -- To find revisions that changed slots, look for slot_origin = slot_revision_id. + slot_origin bigint unsigned NOT NULL, PRIMARY KEY ( slot_revision_id, slot_role_id ) ) /*$wgDBTableOptions*/; -- Index for finding revisions that modified a specific slot -CREATE INDEX /*i*/slot_role_inherited ON /*_*/slots (slot_revision_id, slot_role_id, slot_inherited); +CREATE INDEX /*i*/slot_revision_origin_role ON /*_*/slots (slot_revision_id, slot_origin, slot_role_id); -- -- The content table represents content objects. It's primary purpose is to provide the necessary