Skip to content

Commit bd57703

Browse files
committed
add comment
1 parent fd7841b commit bd57703

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/Console/Commands/Wiki/DropDatabase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public function handle(): int {
3939
return 0;
4040
}
4141

42+
// This is a rather ugly way to clean up some of the user data from a wiki that we are about to soft delete.
43+
//
44+
// This directly accesses the MW DB from the platform API which is a pattern we are generally trying to avoid but
45+
// the database is likely never going to be read by MW every again since it's next step is hard deletion.
4246
private function dropWikiDb(WikiDb $wikiDb): bool {
4347
$connection = $this->getWikiDbConnection($wikiDb);
4448

0 commit comments

Comments
 (0)