From b8fdc572b2511557ab687fec4718b90ca0d520e6 Mon Sep 17 00:00:00 2001 From: Anselm McClain Date: Thu, 7 Nov 2024 10:06:46 -0800 Subject: [PATCH] =?UTF-8?q?Increase=20max=20size=20of=20Role.category=20(3?= =?UTF-8?q?0=20=E2=86=92=20100=20chars)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #395 --- CHANGELOG.md | 13 +++++++++++++ .../domain/io/xh/hoist/role/provided/Role.groovy | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e03a687..55e513dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ ## 25.0-SNAPSHOT - unreleased +### ⚙️ Technical + +* Increased max length of `Role.category` string to 100 chars. +* Requires column modification to `xh_role` table with the following SQL or equivalent: +```mysql +-- MySQL +ALTER TABLE `xh_role` CHANGE COLUMN `category` `category` VARCHAR(100) null +``` +```sql +-- SQL Server +ALTER TABLE xh_role ALTER COLUMN category VARCHAR(100) null +``` + ## 24.0.0 - 2024-10-17 ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW - Hoist React update) diff --git a/grails-app/domain/io/xh/hoist/role/provided/Role.groovy b/grails-app/domain/io/xh/hoist/role/provided/Role.groovy index 3cd1a424..83c96e39 100644 --- a/grails-app/domain/io/xh/hoist/role/provided/Role.groovy +++ b/grails-app/domain/io/xh/hoist/role/provided/Role.groovy @@ -28,7 +28,7 @@ class Role implements JSONFormat { } static constraints = { - category nullable: true, maxSize: 30, blank: false + category nullable: true, maxSize: 100, blank: false notes nullable: true, maxSize: 1200 lastUpdatedBy maxSize: 50 }