From fe99e719fe4207a5031ef2944e771e266716eb63 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Thu, 9 Jan 2025 18:35:52 +0530 Subject: [PATCH] fix: add more space to taskprocessing columns Signed-off-by: Anupam Kumar --- appinfo/info.xml | 2 +- .../Version5001Date20250109130253.php | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 lib/Migration/Version5001Date20250109130253.php diff --git a/appinfo/info.xml b/appinfo/info.xml index 4f387f24..17133830 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.1.0 agpl Andrey Borysenko Alexander Piskun diff --git a/lib/Migration/Version5001Date20250109130253.php b/lib/Migration/Version5001Date20250109130253.php new file mode 100644 index 00000000..26ae7805 --- /dev/null +++ b/lib/Migration/Version5001Date20250109130253.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; + } +}