From 8ff4bc0f7bb87bfd951f2d9027acf697d030cd17 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 16 May 2025 22:07:34 +1200 Subject: [PATCH] Fix count --- src/Appwrite/Platform/Tasks/Migrate.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/Migrate.php b/src/Appwrite/Platform/Tasks/Migrate.php index 0d7ce0be3e..c8e9a73991 100644 --- a/src/Appwrite/Platform/Tasks/Migrate.php +++ b/src/Appwrite/Platform/Tasks/Migrate.php @@ -4,16 +4,13 @@ namespace Appwrite\Platform\Tasks; use Appwrite\Migration\Migration; use Redis; -use Swoole\Runtime; -use Utopia\App; use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\Document; -use Utopia\Database\Query; +use Utopia\Database\Exception; use Utopia\Database\Validator\Authorization; use Utopia\Platform\Action; use Utopia\Registry\Registry; -use Utopia\System\System; use Utopia\Validator\Text; class Migrate extends Action @@ -84,7 +81,7 @@ class Migrate extends Action throw $th; } - Console::log('Migrated ' . $count++ . '/' . $total . ' projects...'); + Console::log('Migrated ' . ++$count . '/' . $total . ' projects...'); }); Console::success('Migration completed');