Skip to content

Increase column sizes for res_key and status_log#142

Merged
cgalibern merged 2 commits into
opensvc:mainfrom
cgalibern:dev
Jun 9, 2026
Merged

Increase column sizes for res_key and status_log#142
cgalibern merged 2 commits into
opensvc:mainfrom
cgalibern:dev

Conversation

@cgalibern

Copy link
Copy Markdown
Contributor

Description

This pull request includes the following changes:

  • Updated the res_key column in the resinfo table schema from varchar(40) to varchar(255) to support longer resource keys.
  • Changed the status_log column type in the svcactions table from TEXT to MEDIUMTEXT, allowing larger log entries.
  • Introduced a new constant, MediumTextMax, to handle updated truncation limits in the InsertSvcAction and UpdateSvcAction methods.

Checklist

  • Code builds correctly
  • Tests have been written and/or existing tests updated
  • Documentation has been updated if necessary
  • Related tickets are referenced in the code

cgalibern added 2 commits June 9, 2026 17:08
…d update truncation logic

- Changed `status_log` column type from `TEXT` to `MEDIUMTEXT` for handling larger logs.
- Introduced new constant `MediumTextMax` for updated truncation limits in `InsertSvcAction` and `UpdateSvcAction` methods.
- Updated `res_key` column in `resinfo` table schema from `varchar(40)` to `varchar(255)` to allow longer keys.
@cgalibern cgalibern merged commit 65963b8 into opensvc:main Jun 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant