diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 91a78dcda5..7e15775d9b 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -225,6 +225,7 @@ class Migrations extends Action $rule = $this->dbForPlatform->findOne('rules', [ Query::equal('domain', [$sourceHost]), Query::equal('type', ['api']), + Query::equal('status', [RULE_STATUS_VERIFIED]), Query::equal('projectInternalId', [$this->sourceProject->getSequence()]), ]); if (!$rule->isEmpty()) {