From fcd32e1cd9e20057eef23441cd4f263f2b0d625c Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 9 Apr 2026 02:09:58 +0100 Subject: [PATCH] Pass overwrite and skip options from migration document to destination adapter --- src/Appwrite/Platform/Workers/Migrations.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 43f5c97ba6..57390e0600 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -444,6 +444,13 @@ class Migrations extends Action $source = $this->processSource($migration); $destination = $this->processDestination($migration); + $options = $migration->getAttribute('options', []); + + if ($destination instanceof DestinationAppwrite) { + $destination->setOverwrite($options['overwrite'] ?? false); + $destination->setSkip($options['skip'] ?? false); + } + $transfer = new Transfer( $source, $destination