Merge branch 'next' into deploy-error-logging
This commit is contained in:
commit
c3c7dd2543
6 changed files with 59 additions and 59 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'coolify' => [
|
'coolify' => [
|
||||||
'version' => '4.0.0-beta.444',
|
'version' => '4.0.0-beta.445',
|
||||||
'helper_version' => '1.0.12',
|
'helper_version' => '1.0.12',
|
||||||
'realtime_version' => '1.0.10',
|
'realtime_version' => '1.0.10',
|
||||||
'self_hosted' => env('SELF_HOSTED', true),
|
'self_hosted' => env('SELF_HOSTED', true),
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,15 @@
|
||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('cloud_init_scripts', function (Blueprint $table) {
|
Schema::create('cloud_init_scripts', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('team_id')->constrained()->onDelete('cascade');
|
$table->foreignId('team_id')->constrained()->onDelete('cascade');
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->text('script'); // Encrypted in the model
|
$table->text('script'); // Encrypted in the model
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
||||||
$table->index('team_id');
|
$table->index('team_id');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
<?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('webhook_notification_settings', function (Blueprint $table) {
|
|
||||||
$table->id();
|
|
||||||
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
|
|
||||||
|
|
||||||
$table->boolean('webhook_enabled')->default(false);
|
|
||||||
$table->text('webhook_url')->nullable();
|
|
||||||
|
|
||||||
$table->boolean('deployment_success_webhook_notifications')->default(false);
|
|
||||||
$table->boolean('deployment_failure_webhook_notifications')->default(true);
|
|
||||||
$table->boolean('status_change_webhook_notifications')->default(false);
|
|
||||||
$table->boolean('backup_success_webhook_notifications')->default(false);
|
|
||||||
$table->boolean('backup_failure_webhook_notifications')->default(true);
|
|
||||||
$table->boolean('scheduled_task_success_webhook_notifications')->default(false);
|
|
||||||
$table->boolean('scheduled_task_failure_webhook_notifications')->default(true);
|
|
||||||
$table->boolean('docker_cleanup_success_webhook_notifications')->default(false);
|
|
||||||
$table->boolean('docker_cleanup_failure_webhook_notifications')->default(true);
|
|
||||||
$table->boolean('server_disk_usage_webhook_notifications')->default(true);
|
|
||||||
$table->boolean('server_reachable_webhook_notifications')->default(false);
|
|
||||||
$table->boolean('server_unreachable_webhook_notifications')->default(true);
|
|
||||||
$table->boolean('server_patch_webhook_notifications')->default(false);
|
|
||||||
|
|
||||||
$table->unique(['team_id']);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reverse the migrations.
|
|
||||||
*/
|
|
||||||
public function down(): void
|
|
||||||
{
|
|
||||||
Schema::dropIfExists('webhook_notification_settings');
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?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('webhook_notification_settings', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->foreignId('team_id')->constrained()->cascadeOnDelete();
|
||||||
|
|
||||||
|
$table->boolean('webhook_enabled')->default(false);
|
||||||
|
$table->text('webhook_url')->nullable();
|
||||||
|
|
||||||
|
$table->boolean('deployment_success_webhook_notifications')->default(false);
|
||||||
|
$table->boolean('deployment_failure_webhook_notifications')->default(true);
|
||||||
|
$table->boolean('status_change_webhook_notifications')->default(false);
|
||||||
|
$table->boolean('backup_success_webhook_notifications')->default(false);
|
||||||
|
$table->boolean('backup_failure_webhook_notifications')->default(true);
|
||||||
|
$table->boolean('scheduled_task_success_webhook_notifications')->default(false);
|
||||||
|
$table->boolean('scheduled_task_failure_webhook_notifications')->default(true);
|
||||||
|
$table->boolean('docker_cleanup_success_webhook_notifications')->default(false);
|
||||||
|
$table->boolean('docker_cleanup_failure_webhook_notifications')->default(true);
|
||||||
|
$table->boolean('server_disk_usage_webhook_notifications')->default(true);
|
||||||
|
$table->boolean('server_reachable_webhook_notifications')->default(false);
|
||||||
|
$table->boolean('server_unreachable_webhook_notifications')->default(true);
|
||||||
|
$table->boolean('server_patch_webhook_notifications')->default(false);
|
||||||
|
|
||||||
|
$table->unique(['team_id']);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('webhook_notification_settings');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.444"
|
"version": "4.0.0-beta.445"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.445"
|
"version": "4.0.0-beta.446"
|
||||||
},
|
},
|
||||||
"helper": {
|
"helper": {
|
||||||
"version": "1.0.12"
|
"version": "1.0.12"
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.444"
|
"version": "4.0.0-beta.445"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.445"
|
"version": "4.0.0-beta.446"
|
||||||
},
|
},
|
||||||
"helper": {
|
"helper": {
|
||||||
"version": "1.0.12"
|
"version": "1.0.12"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue