Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-05-12 18:03:42 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-05-12 18:04:50 +0300
commitbaa70cb63fa576b6e6fce9d116e3e7e364e8e104 (patch)
tree2aa52fbcc1b4c131f9f366aa3e411ef2fd14f772 /lib
parentcc294d340f229330c4d8a0a7f613e4f3da8ba096 (diff)
Do not delete outbox recipients during migration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/Migration/Version1130Date20220412111833.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Migration/Version1130Date20220412111833.php b/lib/Migration/Version1130Date20220412111833.php
index 595b39ecd..db16af999 100644
--- a/lib/Migration/Version1130Date20220412111833.php
+++ b/lib/Migration/Version1130Date20220412111833.php
@@ -50,7 +50,8 @@ class Version1130Date20220412111833 extends SimpleMigrationStep {
public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
// Truncate all tables that will get a new index later
$qb = $this->connection->getQueryBuilder();
- $qb->delete('mail_recipients');
+ $qb->delete('mail_recipients')
+ ->where($qb->expr()->isNull('local_message_id'));
$qb->execute();
// Truncate and change primary key type for messages table