Refactor commit_message column length to 50 characters
This commit is contained in:
parent
1e01106b94
commit
56a450a936
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user