diff --git a/app/Models/ApplicationDeploymentQueue.php b/app/Models/ApplicationDeploymentQueue.php index a55d3a4a2..c55f89e21 100644 --- a/app/Models/ApplicationDeploymentQueue.php +++ b/app/Models/ApplicationDeploymentQueue.php @@ -27,7 +27,7 @@ class ApplicationDeploymentQueue extends Model if (empty($this->commit_message) || is_null($this->commit_message)) { return null; } - return str($this->commit_message)->trim()->limit(300)->value(); + return str($this->commit_message)->trim()->limit(50)->value(); } public function addLogEntry(string $message, string $type = 'stdout', bool $hidden = false) { diff --git a/database/migrations/2024_05_15_091757_add_commit_message_to_app_deployment_queue.php b/database/migrations/2024_05_15_091757_add_commit_message_to_app_deployment_queue.php index 0128e2be5..78608f503 100644 --- a/database/migrations/2024_05_15_091757_add_commit_message_to_app_deployment_queue.php +++ b/database/migrations/2024_05_15_091757_add_commit_message_to_app_deployment_queue.php @@ -12,7 +12,7 @@ return new class extends Migration public function up(): void { Schema::table('application_deployment_queues', function (Blueprint $table) { - $table->string('commit_message', 300)->nullable(); + $table->string('commit_message', 50)->nullable(); }); }