Trait_text has a sqlalchemy model definition with
value column as Text type, but the migrate scripts
defined the column type as String(255) leading to
Sqlalchemy exception when indexing trait with large
text.
This fixes the TraitText model value as String(255)
to match the migrate script definition and crops
the text input to 255 characters.
Reviewed: https:/ /review. openstack. org/178435 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=35e574085dd 1d9339e1bee770e 12665a6b7228d8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 35e574085dd1d93 39e1bee770e1266 5a6b7228d8
Author: Rohit Jaiswal <email address hidden>
Date: Tue Apr 28 14:52:38 2015 -0700
TraitText value restricted to max length 255
Trait_text has a sqlalchemy model definition with
value column as Text type, but the migrate scripts
defined the column type as String(255) leading to
Sqlalchemy exception when indexing trait with large
text.
This fixes the TraitText model value as String(255)
to match the migrate script definition and crops
the text input to 255 characters.
Change-Id: I55eee4e9fcdee8 d05f3598a9bc036 8bc92a9b238
Closes-Bug: 1447647