Refactor commit_message column length to 50 characters

This commit is contained in:
Andras Bacsai 2024-05-15 12:35:28 +02:00
parent 1e01106b94
commit 56a450a936
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public function commitMessage()
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)
{

View File

@ -12,7 +12,7 @@
public function up(): void
{
Schema::table('application_deployment_queues', function (Blueprint $table) {
$table->string('commit_message', 300)->nullable();
$table->string('commit_message', 50)->nullable();
});
}