Merge pull request #11757 from appwrite/air/fix-flaky-migration-test-580aa1bc-d

Fix flaky vectordb migration test
This commit is contained in:
Chirag Aggarwal
2026-04-02 10:19:15 +05:30
committed by GitHub
@@ -130,9 +130,11 @@ class Create extends CollectionAction
$indexes[] = new Document($index);
}
try {
// passing null in creates only creates the metadata collection
if (!$dbForDatabases->exists(null, Database::METADATA)) {
$dbForDatabases->create();
try {
$dbForDatabases->create();
} catch (DuplicateException) {
}
}
$dbForDatabases->createCollection(
id: 'database_' . $database->getSequence() . '_collection_' . $collection->getSequence(),