diff --git a/bin/create-missing-schedules b/bin/create-missing-schedules deleted file mode 100644 index 41750b163c..0000000000 --- a/bin/create-missing-schedules +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -php /usr/src/code/app/cli.php create-missing-schedules $@ \ No newline at end of file diff --git a/bin/patch-create-missing-schedules b/bin/patch-create-missing-schedules new file mode 100644 index 0000000000..e38d3e9a6f --- /dev/null +++ b/bin/patch-create-missing-schedules @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/cli.php patch-create-missing-schedules $@ \ No newline at end of file diff --git a/src/Appwrite/Platform/Services/Tasks.php b/src/Appwrite/Platform/Services/Tasks.php index e6919f2cc7..2e15cd015c 100644 --- a/src/Appwrite/Platform/Services/Tasks.php +++ b/src/Appwrite/Platform/Services/Tasks.php @@ -8,7 +8,7 @@ use Appwrite\Platform\Tasks\Install; use Appwrite\Platform\Tasks\Maintenance; use Appwrite\Platform\Tasks\Migrate; use Appwrite\Platform\Tasks\Schedule; -use Appwrite\Platform\Tasks\CreateMissingSchedules; +use Appwrite\Platform\Tasks\PatchCreateMissingSchedules; use Appwrite\Platform\Tasks\SDKs; use Appwrite\Platform\Tasks\Specs; use Appwrite\Platform\Tasks\SSL; @@ -30,7 +30,7 @@ class Tasks extends Service ->addAction(Doctor::getName(), new Doctor()) ->addAction(Install::getName(), new Install()) ->addAction(Maintenance::getName(), new Maintenance()) - ->addAction(CreateMissingSchedules::getName(), new CreateMissingSchedules()) + ->addAction(PatchCreateMissingSchedules::getName(), new PatchCreateMissingSchedules()) ->addAction(Schedule::getName(), new Schedule()) ->addAction(Migrate::getName(), new Migrate()) ->addAction(SDKs::getName(), new SDKs()) diff --git a/src/Appwrite/Platform/Tasks/CreateMissingSchedules.php b/src/Appwrite/Platform/Tasks/PatchCreateMissingSchedules.php similarity index 93% rename from src/Appwrite/Platform/Tasks/CreateMissingSchedules.php rename to src/Appwrite/Platform/Tasks/PatchCreateMissingSchedules.php index 75e1d5b637..32b9886347 100644 --- a/src/Appwrite/Platform/Tasks/CreateMissingSchedules.php +++ b/src/Appwrite/Platform/Tasks/PatchCreateMissingSchedules.php @@ -11,11 +11,11 @@ use Utopia\Database\Database; use Utopia\Database\ID; use Utopia\Database\Validator\Authorization; -class CreateMissingSchedules extends Action +class PatchCreateMissingSchedules extends Action { public static function getName(): string { - return 'create-missing-schedules'; + return 'patch-create-missing-schedules'; } public function __construct() @@ -35,8 +35,8 @@ class CreateMissingSchedules extends Action Authorization::disable(); Authorization::setDefaultStatus(false); - Console::title('CreateMissingSchedules V1'); - Console::success(APP_NAME . ' CreateMissingSchedules v1 has started'); + Console::title('PatchCreateMissingSchedules V1'); + Console::success(APP_NAME . ' PatchCreateMissingSchedules v1 has started'); $limit = 100; $projectCursor = null;