Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat(migration): Add ssl setting to `standalone_postgresqls` table

peaklabs-dev214a7a089e29
diff --git a/database/migrations/2025_01_27_102616_add_ssl_fields_to_standalone_postgresqls.php b/database/migrations/2025_01_27_102616_add_ssl_fields_to_standalone_postgresqls.php
new file mode 100644
index 0000000000..409d6bb366
--- /dev/null
+++ b/database/migrations/2025_01_27_102616_add_ssl_fields_to_standalone_postgresqls.php
@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ */
+ public function up()
+ {
+ Schema::table('standalone_postgresqls', function (Blueprint $table) {
+ $table->boolean('enable_ssl')->default(true);
+ $table->string('ssl_mode')->nullable()->default('verify-full');
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down()
+ {
+ Schema::table('standalone_postgresqls', function (Blueprint $table) {
+ $table->dropColumn('enable_ssl');
+ $table->dropColumn('ssl_mode');
+ });
+ }
+};