Skip to content

Commit

Permalink
Don't add the index in the first place
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Apr 16, 2019
1 parent 4e0ccd9 commit 347991a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/Migration/Version2006Date20170808154933.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'default' => 0,
]);
$table->setPrimaryKey(['activity_id']);
$table->addIndex(['timestamp'], 'activity_time');
$table->addIndex(['affecteduser', 'timestamp'], 'activity_user_time');
$table->addIndex(['affecteduser', 'user', 'timestamp'], 'activity_filter_by');
// FIXME Fixed install, see Version2006Date20170808155040: $table->addIndex(['affecteduser', 'app', 'timestamp'], 'activity_filter_app');
Expand Down
4 changes: 0 additions & 4 deletions lib/Migration/Version2007Date20181107114613.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
]);
}

if (!$table->hasIndex('activity_time')) {
$table->addIndex(['timestamp'], 'activity_time');
}

if (!$table->hasIndex('activity_object')) {
$table->addIndex(['object_type', 'object_id'], 'activity_object');
}
Expand Down

0 comments on commit 347991a

Please sign in to comment.