2023-03-28 15:47:37 +02:00
|
|
|
<?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(): void
|
|
|
|
{
|
|
|
|
Schema::create('application_settings', function (Blueprint $table) {
|
2023-05-25 13:23:42 +02:00
|
|
|
$table->id();
|
2023-04-25 15:48:45 +02:00
|
|
|
$table->boolean('is_static')->default(false);
|
2023-05-31 11:24:02 +02:00
|
|
|
$table->boolean('is_git_submodules_enabled')->default(true);
|
|
|
|
$table->boolean('is_git_lfs_enabled')->default(true);
|
|
|
|
$table->boolean('is_auto_deploy_enabled')->default(true);
|
|
|
|
$table->boolean('is_force_https_enabled')->default(true);
|
|
|
|
$table->boolean('is_debug_enabled')->default(false);
|
|
|
|
$table->boolean('is_preview_deployments_enabled')->default(false);
|
2023-05-23 12:52:14 +02:00
|
|
|
// $table->boolean('is_dual_cert')->default(false);
|
|
|
|
// $table->boolean('is_custom_ssl')->default(false);
|
|
|
|
// $table->boolean('is_http2')->default(false);
|
2023-03-28 15:47:37 +02:00
|
|
|
$table->foreignId('application_id');
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down(): void
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('application_settings');
|
|
|
|
}
|
|
|
|
};
|