diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-12 18:03:42 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-12 18:04:50 +0300 |
commit | baa70cb63fa576b6e6fce9d116e3e7e364e8e104 (patch) | |
tree | 2aa52fbcc1b4c131f9f366aa3e411ef2fd14f772 /lib | |
parent | cc294d340f229330c4d8a0a7f613e4f3da8ba096 (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.php | 3 |
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 |