From 0209d270810e1cfa1cebba15de5eee5302f3ea4a Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 18 Nov 2024 12:24:47 -0800 Subject: [PATCH 1/2] Fix rollback for created_by --- .../2024_09_17_204302_change_user_id_to_created_by.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php b/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php index a57406ce10..3bef5948b6 100644 --- a/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php +++ b/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php @@ -42,7 +42,7 @@ return new class extends Migration } foreach ($this->existing_table_list() as $table) { - if (Schema::hasColumn($table, 'user_id')) { + if (Schema::hasColumn($table, 'created_by')) { Schema::table($table, function (Blueprint $table) { $table->renameColumn('created_by', 'user_id'); }); From f5206078d46004e190f69de3f9b4f073019dfab9 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 18 Nov 2024 12:25:02 -0800 Subject: [PATCH 2/2] Fix rollback for webhook_endpoint by using correct column type --- .../2023_08_01_174150_change_webhook_settings_variable_type.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2023_08_01_174150_change_webhook_settings_variable_type.php b/database/migrations/2023_08_01_174150_change_webhook_settings_variable_type.php index 59c9728e2e..ddce33e903 100644 --- a/database/migrations/2023_08_01_174150_change_webhook_settings_variable_type.php +++ b/database/migrations/2023_08_01_174150_change_webhook_settings_variable_type.php @@ -26,7 +26,7 @@ class ChangeWebhookSettingsVariableType extends Migration public function down() { Schema::table('settings', function (Blueprint $table) { - $table->varchar('webhook_endpoint')->change(); + $table->string('webhook_endpoint')->change(); }); }