From 637c3982d1035f7793c6b1ca6115b3a00704f018 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 26 Mar 2025 09:45:57 +0100 Subject: [PATCH] feat(database): disable MongoDB SSL by default in migration --- ..._104103_disable_mongodb_ssl_by_default.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2025_03_26_104103_disable_mongodb_ssl_by_default.php diff --git a/database/migrations/2025_03_26_104103_disable_mongodb_ssl_by_default.php b/database/migrations/2025_03_26_104103_disable_mongodb_ssl_by_default.php new file mode 100644 index 000000000..80dddb089 --- /dev/null +++ b/database/migrations/2025_03_26_104103_disable_mongodb_ssl_by_default.php @@ -0,0 +1,28 @@ +boolean('enable_ssl')->default(false)->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('standalone_mongodbs', function (Blueprint $table) { + $table->boolean('enable_ssl')->default(true)->change(); + }); + } +};