From 775ee5d27ae1dad17fe5f6a725d11a5ffc6bff2c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 10 May 2023 12:00:08 +0200 Subject: [PATCH] remove github events for now --- app/Models/GithubEventsApplications.php | 14 --------- ...reate_github_events_applications_table.php | 29 ------------------- routes/webhooks.php | 4 --- 3 files changed, 47 deletions(-) delete mode 100644 app/Models/GithubEventsApplications.php delete mode 100644 database/migrations/2023_05_09_093548_create_github_events_applications_table.php diff --git a/app/Models/GithubEventsApplications.php b/app/Models/GithubEventsApplications.php deleted file mode 100644 index 11c89bfd2..000000000 --- a/app/Models/GithubEventsApplications.php +++ /dev/null @@ -1,14 +0,0 @@ -id(); - $table->string('delivery_guid'); - $table->foreignId('application_id'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('github_events_applications'); - } -}; diff --git a/routes/webhooks.php b/routes/webhooks.php index cd1a9d5cd..bab877df5 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -96,10 +96,6 @@ $applications = Application::where('project_id', $id)->where('git_branch', $branch)->get(); foreach ($applications as $application) { if ($application->isDeployable()) { - GithubEventsApplications::create([ - "delivery_guid" => $x_github_delivery, - "application_id" => $application->id - ]); $deployment_uuid = new Cuid2(7); dispatch(new DeployApplicationJob( deployment_uuid: $deployment_uuid,