From 8218ca15b9f705b197f4bfc70774f5bfb6131bc0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 9 Apr 2011 22:19:10 -0700 Subject: [PATCH] Turns out MySQL tables need keys. Who knew?! --- resources/sql/patches/023.dxkeys.sql | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 resources/sql/patches/023.dxkeys.sql diff --git a/resources/sql/patches/023.dxkeys.sql b/resources/sql/patches/023.dxkeys.sql new file mode 100644 index 0000000000..a5dd872ae9 --- /dev/null +++ b/resources/sql/patches/023.dxkeys.sql @@ -0,0 +1,29 @@ +ALTER TABLE phabricator_differential.differential_changeset + ADD KEY (diffID); + +ALTER TABLE phabricator_differential.differential_comment + ADD KEY (revisionID); + +ALTER TABLE phabricator_differential.differential_diff + ADD KEY (revisionID); + +ALTER TABLE phabricator_differential.differential_inlinecomment + ADD KEY (changesetID); + +ALTER TABLE phabricator_differential.differential_inlinecomment + ADD KEY (commentID); + +ALTER TABLE phabricator_differential.differential_hunk + ADD KEY (changesetID); + +ALTER TABLE phabricator_herald.herald_transcript + ADD KEY (objectPHID); + +ALTER TABLE phabricator_differential.differential_revision + ADD KEY (authorPHID, status); + +ALTER TABLE phabricator_differential.differential_revision + ADD UNIQUE KEY (phid); + +ALTER TABLE phabricator_metamta.metamta_mailinglist + ADD UNIQUE KEY (phid);