From 33db9790ede8d4bc0d4b04c54b5f1d670728915f Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Thu, 9 Jan 2025 22:05:49 +0530 Subject: [PATCH] [stable31] fix: add more space to taskprocessing columns Signed-off-by: Anupam Kumar --- appinfo/info.xml | 2 +- .../Version5000Date20250109163201.php | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 lib/Migration/Version5000Date20250109163201.php diff --git a/appinfo/info.xml b/appinfo/info.xml index 4f387f24..fc22ca1e 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -47,7 +47,7 @@ to join us in shaping a more versatile, stable, and secure app landscape. *Your insights, suggestions, and contributions are invaluable to us.* ]]> - 5.0.0 + 5.0.1 agpl Andrey Borysenko Alexander Piskun diff --git a/lib/Migration/Version5000Date20250109163201.php b/lib/Migration/Version5000Date20250109163201.php new file mode 100644 index 00000000..4e97b5ad --- /dev/null +++ b/lib/Migration/Version5000Date20250109163201.php @@ -0,0 +1,49 @@ +hasTable('ex_task_processing')) { + $table = $schema->getTable('ex_task_processing'); + + $name = $table->getColumn('name'); + if ($name->getLength() < 255) { + $name->setLength(255); + } + + $displayName = $table->getColumn('display_name'); + if ($displayName->getLength() < 255) { + $displayName->setLength(255); + } + + $taskType = $table->getColumn('task_type'); + if ($taskType->getLength() < 255) { + $taskType->setLength(255); + } + } + + return $schema; + } +}