Skip to content

Commit e5a9d1f

Browse files
authored
Merge pull request #491 from nextcloud/fix/stable30/more-space-taskproc
[stable30] fix: add more space to taskprocessing columns
2 parents 8d9ec59 + 51950e3 commit e5a9d1f

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ to join us in shaping a more versatile, stable, and secure app landscape.
4343
*Your insights, suggestions, and contributions are invaluable to us.*
4444
4545
]]></description>
46-
<version>4.0.5</version>
46+
<version>4.0.6</version>
4747
<licence>agpl</licence>
4848
<author mail="andrey18106x@gmail.com" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
4949
<author mail="bigcat88@icloud.com" homepage="https://github.com/bigcat88">Alexander Piskun</author>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
10+
namespace OCA\AppAPI\Migration;
11+
12+
use Closure;
13+
use OCP\DB\ISchemaWrapper;
14+
use OCP\Migration\IOutput;
15+
use OCP\Migration\SimpleMigrationStep;
16+
17+
class Version4000Date20250109163840 extends SimpleMigrationStep {
18+
/**
19+
* @param IOutput $output
20+
* @param Closure(): ISchemaWrapper $schemaClosure
21+
* @param array $options
22+
* @return null|ISchemaWrapper
23+
*/
24+
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
25+
/** @var ISchemaWrapper $schema */
26+
$schema = $schemaClosure();
27+
28+
if ($schema->hasTable('ex_task_processing')) {
29+
$table = $schema->getTable('ex_task_processing');
30+
31+
$name = $table->getColumn('name');
32+
if ($name->getLength() < 255) {
33+
$name->setLength(255);
34+
}
35+
36+
$displayName = $table->getColumn('display_name');
37+
if ($displayName->getLength() < 255) {
38+
$displayName->setLength(255);
39+
}
40+
41+
$taskType = $table->getColumn('task_type');
42+
if ($taskType->getLength() < 255) {
43+
$taskType->setLength(255);
44+
}
45+
}
46+
47+
return $schema;
48+
}
49+
}

0 commit comments

Comments
 (0)