Skip to content

Commit 7d93854

Browse files
Merge pull request #6434 from nextcloud/fix/do-not-delete-outbox-recipients
Do not delete outbox recipients during migration
2 parents 189e91e + baa70cb commit 7d93854

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Migration/Version1130Date20220412111833.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function __construct(IDBConnection $connection) {
5050
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
5151
// Truncate all tables that will get a new index later
5252
$qb = $this->connection->getQueryBuilder();
53-
$qb->delete('mail_recipients');
53+
$qb->delete('mail_recipients')
54+
->where($qb->expr()->isNull('local_message_id'));
5455
$qb->execute();
5556

5657
// Truncate and change primary key type for messages table

0 commit comments

Comments
 (0)