mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
43a3f4d234
Summary: See T262. This creates the index on the Differential side which we need in order to execute this query efficiently on the Diffusion side. Also renames "DiffusionGitPathIDQuery" to "DiffusionPathIDQuery", this query object has nothing to do with git. Test Plan: Attached top-level and sub-level diffs to revisions and verified they populated the table with sensible data. Reviewers: bmaurer, aravindn, fmoo, jungejason, nh, tuomaspelkonen, aran CC: Differential Revision: 931
8 lines
276 B
SQL
8 lines
276 B
SQL
CREATE TABLE phabricator_differential.differential_affectedpath (
|
|
repositoryID INT UNSIGNED NOT NULL,
|
|
pathID INT UNSIGNED NOT NULL,
|
|
epoch INT UNSIGNED NOT NULL,
|
|
KEY (repositoryID, pathID, epoch),
|
|
revisionID INT UNSIGNED NOT NULL,
|
|
KEY (revisionID)
|
|
) ENGINE=InnoDB;
|