--- /dev/null
+ALTER TABLE /*$wgDBprefix*/archive
+ ADD ar_len INT(8) UNSIGNED;
+
-- rev_deleted for archives
ar_deleted tinyint(1) unsigned NOT NULL default '0',
-
+ -- Length of this revision in bytes
+ ar_len int(8) unsigned,
+
KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp)
) ENGINE=InnoDB, DEFAULT CHARSET=binary;
-- rev_deleted for archives
ar_deleted tinyint(1) unsigned NOT NULL default '0',
-
+ -- Length of this revision in bytes
+ rev_len int(8) unsigned,
+
KEY name_title_timestamp (ar_namespace,ar_title,ar_timestamp)
) ENGINE=InnoDB, DEFAULT CHARSET=utf8;
ar_rev_id INTEGER,
ar_text_id INTEGER,
ar_deleted INTEGER NOT NULL DEFAULT '0',
+ ar_len INTEGER NULL,
);
-CREATE INDEX archive_name_title_timestamp ON archive2 (ar_namespace,ar_title,ar_timestamp);
+CREATE INDEX archive_name_title_timestamp ON archive (ar_namespace,ar_title,ar_timestamp);
CREATE TABLE redirect (
rd_from INTEGER NOT NULL REFERENCES page(page_id) ON DELETE CASCADE,
array( 'filearchive', 'fa_deleted', 'patch-fa_deleted.sql' ),
array( 'page_restrictions', 'pr_id', 'patch-page_restrictions_sortkey.sql' ),
array( 'revision', 'rev_len', 'patch-rev_len.sql' ),
+ array( 'archive', 'ar_len', 'patch-ar_len.sql' ),
array( 'revision', 'rev_parent_id', 'patch-rev_parent_id.sql' ),
);