feat(migration): Add ssl setting to standalone_postgresqls table
				
					
				
			This commit is contained in:
		@@ -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');
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user