1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

Fix imports

This commit is contained in:
Jake Barnby 2023-06-15 13:45:10 +12:00
parent 4daa023663
commit ab2cd297f9
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -7,8 +7,6 @@ use Appwrite\Resque\Worker;
use Utopia\CLI\Console;
use Utopia\Database\Database;
use Utopia\Database\Document;
use Utopia\Database\Helpers\ID;
use Exception;
use Utopia\Database\Exception as DatabaseException;
require_once __DIR__ . '/../init.php';
@ -217,7 +215,7 @@ class DatabaseV1 extends Worker
try {
if ($status !== 'failed') {
if ($type === Database::VAR_RELATIONSHIP) {
if ($type === Database::VAR_RELATIONSHIP) {
if ($options['twoWay']) {
$relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $options['relatedCollection']);
if ($relatedCollection->isEmpty()) {
@ -310,8 +308,7 @@ class DatabaseV1 extends Worker
$index
->setAttribute('attributes', $attributes, Document::SET_TYPE_ASSIGN)
->setAttribute('lengths', $lengths, Document::SET_TYPE_ASSIGN)
->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN)
;
->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN);
// Check if an index exists with the same attributes and orders
$exists = false;