Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions schema/patch-2-page-counter.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS /*_*/wiretap_counter_period (
count INT(8) UNSIGNED NOT NULL DEFAULT 0,
count_unique INT(8) UNSIGNED NOT NULL DEFAULT 0
) /*$wgDBTableOptions*/;
DROP INDEX /*i*/wiretap_counter_period_page_id ON /*_*/wiretap_counter_period;
CREATE UNIQUE INDEX /*i*/wiretap_counter_period_page_id ON /*_*/wiretap_counter_period (page_id);

CREATE TABLE IF NOT EXISTS /*_*/wiretap_counter_alltime (
Expand All @@ -12,4 +13,5 @@ CREATE TABLE IF NOT EXISTS /*_*/wiretap_counter_alltime (
count INT(8) UNSIGNED NOT NULL DEFAULT 0,
count_unique INT(8) UNSIGNED NOT NULL DEFAULT 0
);
DROP INDEX /*i*/wiretap_counter_alltime_page_id ON /*_*/wiretap_counter_alltime;
CREATE UNIQUE INDEX /*i*/wiretap_counter_alltime_page_id ON /*_*/wiretap_counter_alltime (page_id);
1 change: 1 addition & 0 deletions schema/patch-3-legacy-counter.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ CREATE TABLE IF NOT EXISTS /*_*/wiretap_legacy (
legacy_id INT(8) UNSIGNED NOT NULL,
legacy_counter INT(8) UNSIGNED NOT NULL DEFAULT 0
) /*$wgDBTableOptions*/;
DROP INDEX /*i*/wiretap_counter_legacy_page_id ON /*_*/wiretap_legacy;
CREATE UNIQUE INDEX /*i*/wiretap_counter_legacy_page_id ON /*_*/wiretap_legacy (legacy_id);