mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Pass overwrite and skip options from migration document to destination adapter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user