From 2720ba0b46ecf57a0fe27a71cd136f2c904bffd7 Mon Sep 17 00:00:00 2001 From: alexbcberio Date: Tue, 19 May 2020 13:46:47 +0200 Subject: [PATCH] Delete old webhook action, not used anymore --- app/TwitchWebhook.php | 7 ---- app/WebhookAction.php | 25 -------------- ...22_161039_create_webhook_actions_table.php | 33 ------------------- 3 files changed, 65 deletions(-) delete mode 100644 app/WebhookAction.php delete mode 100644 database/migrations/2020_04_22_161039_create_webhook_actions_table.php diff --git a/app/TwitchWebhook.php b/app/TwitchWebhook.php index 0c42b0a..cf6b17b 100644 --- a/app/TwitchWebhook.php +++ b/app/TwitchWebhook.php @@ -28,13 +28,6 @@ class TwitchWebhook extends Model return $this->belongsTo("App\User"); } - /** - * Get webhook action - */ - public function webhookActions() { - return $this->hasMany("App\WebhookAction", "webhook_id"); - } - // event handlers /** diff --git a/app/WebhookAction.php b/app/WebhookAction.php deleted file mode 100644 index aca8de1..0000000 --- a/app/WebhookAction.php +++ /dev/null @@ -1,25 +0,0 @@ -belongsTo("App\TwitchWebhook", "webhook_id"); - } -} diff --git a/database/migrations/2020_04_22_161039_create_webhook_actions_table.php b/database/migrations/2020_04_22_161039_create_webhook_actions_table.php deleted file mode 100644 index aaab85b..0000000 --- a/database/migrations/2020_04_22_161039_create_webhook_actions_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->foreignId("webhook_id")->references("id")->on("twitch_webhooks")->onUpdate("cascade")->onDelete("cascade"); - $table->string("discord_hook_url"); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('webhook_actions'); - } -}