123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- declare(strict_types=1);
- namespace OC\Core\Migrations;
- use Closure;
- use OCP\DB\ISchemaWrapper;
- use OCP\Migration\Attributes\ModifyColumn;
- use OCP\Migration\IOutput;
- use OCP\Migration\SimpleMigrationStep;
- class Version30000Date20240906095113 extends SimpleMigrationStep {
-
- public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
-
- $schema = $schemaClosure();
- if ($schema->hasTable('taskprocessing_tasks')) {
- $table = $schema->getTable('taskprocessing_tasks');
- $column = $table->getColumn('error_message');
-
- if ($column->getLength() < 4000) {
- $column->setLength(4000);
- }
- }
- return $schema;
- }
- }
|