Change the logmsg and description fields for events and alarms to text object.

Description

We have a client who makes heavy use of both the description and logmsg fields in events and alarms. There is no real reason why they can't be bigger than 4000 and 256 characters, respectively.

This enhancement is to make them "text" instead of "varchar" types. Should actually speed things up a little.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Benjamin Reed February 2, 2011 at 5:17 PM

Also, this broke some unit tests. Removing the Constants.format() method meant we were sometimes pushing nulls to the database, which is not legal in PostgreSQL.

I've fixed this in 1.8 and master:

[1.8 477c693] fix for changes made for
[master d19e4fd] fix for changes made for

Benjamin Reed February 2, 2011 at 1:56 PM

FYI, the push doesn't make it obvious what commits actually did the fixing. In this case, it's ac62f80446025d0e156fc196f59020ddf3647d32 in 1.8, and f60a782e0de2d42dc543339bf19a421ac4916ad6 in master.

Tarus Balog January 27, 2011 at 3:20 PM

$ git push
Counting objects: 90, done.
Compressing objects: 100% (44/44), done.
Writing objects: 100% (49/49), 5.54 KiB, done.
Total 49 (delta 22), reused 0 (delta 0)
To ssh://tarus@opennms.git.sourceforge.net/gitroot/opennms/opennms
c74fc29..ac62f80 1.8 -> 1.8

Tarus Balog January 27, 2011 at 3:19 PM

I think I have addressed this here:

$ git push
Counting objects: 90, done.
Compressing objects: 100% (44/44), done.
Writing objects: 100% (49/49), 5.54 KiB, done.
Total 49 (delta 22), reused 0 (delta 0)
To ssh://tarus@opennms.git.sourceforge.net/gitroot/opennms/opennms
c74fc29..ac62f80 1.8 -> 1.8

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created January 27, 2011 at 10:18 AM
Updated January 27, 2017 at 4:19 PM
Resolved January 27, 2011 at 3:20 PM